6 lines
208 B
TypeScript
6 lines
208 B
TypeScript
|
type primitive = null | undefined | string | symbol | number | boolean | bigint;
|
||
|
|
||
|
declare function ToPrimitive(input: unknown, hint?: StringConstructor | NumberConstructor): primitive;
|
||
|
|
||
|
export = ToPrimitive;
|