Files
2026-06-24 09:48:54 +02:00

14 lines
360 B
TypeScript

import type { primitive } from './';
declare function ToPrimitive(
input: ToPrimitive.unknownES5,
hint?: StringConstructor | NumberConstructor,
): ToPrimitive.primitiveES5;
declare namespace ToPrimitive {
export type primitiveES5 = Exclude<primitive, symbol | bigint>;
export type unknownES5 = primitiveES5 | object;
}
export = ToPrimitive;