Frontend/25_01_07/mai/node_modules/which-boxed-primitive/index.d.ts

12 lines
557 B
TypeScript
Raw Normal View History

2025-01-28 10:38:27 +00:00
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;