datasquirel/dist/package-shared/utils/ejson.d.ts
Benjamin Toby 186cc76ffb Updates
2025-01-12 18:19:20 +01:00

18 lines
504 B
TypeScript

/**
* # EJSON parse string
*/
declare function parse(string: string | null | number, reviver?: (this: any, key: string, value: any) => any): {
[s: string]: any;
} | {
[s: string]: any;
}[] | undefined;
/**
* # EJSON stringify object
*/
declare function stringify(value: any, replacer?: ((this: any, key: string, value: any) => any) | null, space?: string | number): string | undefined;
declare const EJSON: {
parse: typeof parse;
stringify: typeof stringify;
};
export default EJSON;