Typescript Interface Async Function Javascript