Typeseedcordv0.10.6
Promisable
Create a type that represents either the value or the value wrapped in PromiseLikePromiseLike.
Use-cases: - A function accepts a callback that may either return a value synchronously or may return a promised value. - This type could be the return type of Promise#then()Promise#then(), Promise#catch()Promise#catch(), and Promise#finally()Promise#finally() callbacks.
Please upvote this issue if you want to have this type as a built-in in TypeScript.
type Promisable<T> = T | PromiseLike<T>;type Promisable<T> = T | PromiseLike<T>;T
TT