Frontend/25_01_07/mai/node_modules/which-boxed-primitive/index.d.ts
szabomarton 7f4a15b9c3 asd
2025-01-28 11:38:27 +01:00

12 lines
557 B
TypeScript

type primitive = string | number | bigint | boolean | symbol | null | undefined;
declare function whichBoxedPrimitive(value: primitive): null;
declare function whichBoxedPrimitive(value: BigInt): 'BigInt';
declare function whichBoxedPrimitive(value: Boolean): 'Boolean';
declare function whichBoxedPrimitive(value: Number): 'Number';
declare function whichBoxedPrimitive(value: String): 'String';
declare function whichBoxedPrimitive(value: Symbol): 'Symbol';
declare function whichBoxedPrimitive(value: unknown): undefined;
export = whichBoxedPrimitive;