Files
chat/client/shared/types.ts
2026-04-25 16:36:34 +08:00

6 lines
168 B
TypeScript

export type PromiseType<P extends Promise<any>> = P extends Promise<infer T>
? T
: never;
export type FunctionReturningPromise = (...args: any[]) => Promise<any>;