Typescript Interface Define Asynchronous Programming