-
Notifications
You must be signed in to change notification settings - Fork 396
Open
Description
实现 Unpacked
工具类型,用于对类型执行 “拆箱” 操作。具体的使用示例如下所示:
type Unpacked<T> = // 你的实现代码
type T00 = Unpacked<string>; // string
type T01 = Unpacked<string[]>; // string
type T02 = Unpacked<() => string>; // string
type T03 = Unpacked<Promise<string>>; // string
type T04 = Unpacked<Unpacked<Promise<string>[]>>; // string
type T05 = Unpacked<any>; // any
type T06 = Unpacked<never>; // never
请在下面评论你的答案
Metadata
Metadata
Assignees
Labels
No labels