@jswalden/streaming-json
Version:
Streaming JSON parsing and stringification for JavaScript/TypeScript
19 lines (18 loc) • 905 B
TypeScript
/**
* Convert a value to string, by ECMAScript `ToString` semantics.
*
* @see https://tc39.es/ecma262/#sec-tostring
*/
export declare const ToString: StringConstructor;
/** Return a string consisting of all of the supplied character codes. */
export declare const StringFromCharCode: (...codes: number[]) => string;
/**
* Return a substring of `s` that starts with character `s[start]` and proceeds
* up to (but does not include) the character at index `limit`. If this would
* exceed the string's length, return a slice ending at the end of the string.
*/
export declare function StringSlice(s: string, start: number, limit: number): string;
/** Return a string consisting of `s` repeated `count` times. */
export declare function StringRepeat(s: string, count: number): string;
/** Return the character code of `s[i]`. */
export declare function StringCharCodeAt(s: string, i: number): number;