Files
NapCatQQ/.pnpm-store/v3/files/dd/03d6486bc2dc57023c0d716140e08be00a2a675c0df506021344e166eb544f7ced80697eef7bc8ccd0c1a839438e81956c8e799ac9d47b580f04c57fd61cd1
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

14 lines
449 B
Plaintext

declare function unboxPrimitive<T extends unboxPrimitive.Boxed>(value: T): unboxPrimitive.Unbox<T>;
declare namespace unboxPrimitive {
type Boxed = String | Number | Boolean | Symbol | BigInt;
type Unbox<T extends Boxed> = T extends String ? string
: T extends Number ? number
: T extends Boolean ? boolean
: T extends Symbol ? symbol
: T extends BigInt ? bigint
: never;
}
export = unboxPrimitive;