1 | // Type definitions for json-stringify-safe 5.0
|
2 | // Project: https://github.com/isaacs/json-stringify-safe
|
3 | // Definitions by: BendingBender <https://github.com/BendingBender>
|
4 | // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
5 |
|
6 | export = stringify;
|
7 |
|
8 | declare function stringify(obj: any, serializer?: stringify.EntryProcessor | null, indent?: string | number | null, decycler?: stringify.EntryProcessor): string;
|
9 |
|
10 | declare namespace stringify {
|
11 | function getSerialize(serializer: EntryProcessor | null, decycler?: EntryProcessor): EntryProcessor;
|
12 |
|
13 | type EntryProcessor = (key: string, value: any) => any;
|
14 | }
|