/** * Extract the type contained in a promise. If the type is not a promise, the * type is returned as-is. * * @template T The type to unwrap. * @example PromiseUnwrap> // number */ type PromiseUnwrap = T extends Promise ? U : T; export type { PromiseUnwrap };