Typescript Type Async Function Python Syntax