You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
557 B
11 lines
557 B
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;
|
|
|