20 lines
697 B
TypeScript
20 lines
697 B
TypeScript
/**
|
|
*
|
|
* @param {string | null | number} string
|
|
* @param {(this: any, key: string, value: any) => any} [reviver]
|
|
* @returns {Object<string, any> | Object<string, any>[] | undefined}
|
|
*/
|
|
export function parse(string: string | null | number, reviver?: (this: any, key: string, value: any) => any): {
|
|
[x: string]: any;
|
|
} | {
|
|
[x: string]: any;
|
|
}[] | undefined;
|
|
/**
|
|
*
|
|
* @param {any} value
|
|
* @param {((this: any, key: string, value: any) => any) | null} [replacer]
|
|
* @param { string | number } [space]
|
|
* @returns {string | undefined}
|
|
*/
|
|
export function stringify(value: any, replacer?: ((this: any, key: string, value: any) => any) | null, space?: string | number): string | undefined;
|