export type PromiseType
> = P extends Promise ? T : never; export type FunctionReturningPromise = (...args: any[]) => Promise;