UNPKG

@jswalden/streaming-json

Version:

Streaming JSON parsing and stringification for JavaScript/TypeScript

11 lines (10 loc) 447 B
/** * Convert a value to number consistent with ECMAScript `ToNumber` semantics. * * @see https://tc39.es/ecma262/#sec-tonumber */ export declare function ToNumber(v: unknown): number; /** Convert a string of decimal digits to the number those digits identify. */ export declare function ParseDecimalDigits(digits: string): number; /** Parse a JSON floating-point number to number value. */ export declare const ParseFloat: typeof parseFloat;