mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-09 12:13:10 -05:00
8 lines
165 B
TypeScript
8 lines
165 B
TypeScript
export type Unwrap<T> = T extends Promise<infer U>
|
|
? U
|
|
: T extends (...args: any) => Promise<infer U>
|
|
? U
|
|
: T extends (...args: any) => infer U
|
|
? U
|
|
: T;
|