Installation
npm install --save @types/relaxed-json
Summary
This package contains type definitions for relaxed-json (https://github.com/phadej/relaxed-json).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/relaxed-json.
export type Reviver = (this: {}, key: string, value: any) => any;
export function transform(text: string): string;
export function parse(text: string, reviver: Reviver): {};
export function parse(text: string, opts?: {
reviver?: Reviver | undefined;
relaxed?: boolean | undefined;
warnings?: boolean | undefined;
tolerant?: boolean | undefined;
duplicate?: boolean | undefined;
}): {};
export function stringify(obj: any): string;
Additional Details
- Last updated: Wed, 18 Oct 2023 11:45:06 GMT
- Dependencies: none
Credits
These definitions were written by Mikal Madsen.