DefinitelyTyped/types/circular-json/index.d.ts
Alessandro Vergani 09b08e4b7d Fix circular-json declarations to match JSON object (#20755)
* Fix circular-json declarations

* Simplify definitions of circular-json
2017-10-20 09:10:45 -07:00

8 lines
482 B
TypeScript

// Type definitions for circular-json 0.4
// Project: https://github.com/WebReflection/circular-json
// Definitions by: Jonathan Pevarnek <https://github.com/jpevarnek>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export function parse(text: string, reviver?: (key: any, value: any) => any): any;
export function stringify(value: any, replacer?: ((key: string, value: any) => any) | Array<number | string> | null, space?: any, placeholder?: boolean): string;