Get the result type of a Promise
Promise
A promise
[[Any]]
import {C} from 'ts-toolbelt' const promise = new Promise<string>((res, rej) => res('x')) type test0 = C.Await<typeof promise> // string type test1 = C.Await<Promise<number>> // number
Get the result type of a
Promise