type PromiseValue<P>
Utility type to return the contained type of a promise.
Definition
export type PromiseValue<P> = P extends Promise<infer R> ? R : never;
type PromiseValue<P>
Utility type to return the contained type of a promise.
export type PromiseValue<P> = P extends Promise<infer R> ? R : never;