Get the instance type wrapped within a Promise
Promise
any
import {C} from 'ts-toolbelt' const promise = new Promise<string>((res, rej) => res('x')) type test0 = C.PromiseOf<typeof promise> // string type test1 = C.PromiseOf<Promise<number>> // number
Made with ❤️ by pirix-gh. Documentation generated by TypeDoc.
Get the instance type wrapped within a
Promise