Typescript Interface Async Function Example Problems