2 lines
90 B
TypeScript
2 lines
90 B
TypeScript
|
export type UnboxPromise<T extends Promise<any>> = T extends Promise<infer U> ? U: never;
|