UNPKG

@jswalden/streaming-json

Version:

Streaming JSON parsing and stringification for JavaScript/TypeScript

12 lines (11 loc) 535 B
/** * Throw an `Error` instance (that is, `Error` exactly, not a subclass of it) * with the given message. */ export declare function ThrowError(msg: string): never; /** Throw a `RangeError` instance with the given message. */ export declare function ThrowRangeError(msg: string): never; /** Throw a `SyntaxError` instance with the given message. */ export declare function ThrowSyntaxError(msg: string): never; /** Throw a `TypeError` instance with the given message. */ export declare function ThrowTypeError(msg: string): never;