UNPKG

@dipscope/type-manager

Version:

Transform JSON strings or plain objects into JS class instances.

11 lines 766 B
/** * Function which returns consistent results when stringify JSON object. * * @param {any} x Input value, usually an object or array, to be converted. * @param {Function|Array<number>|Array<string>} replacer A function that transforms the results or an array of strings and numbers that acts as an approved list. * @param {string|number} space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read. * * @returns {string} Consistent JSON string which can be used for hashing. */ export declare function jsonStringify(x: any, replacer?: (this: any, key: string, value: any) => any | Array<number> | Array<string> | null, space?: string | number): string; //# sourceMappingURL=json-stringify.d.ts.map