1 | # Installation
|
2 | > `npm install --save @types/json-stringify-safe`
|
3 |
|
4 | # Summary
|
5 | This package contains type definitions for json-stringify-safe (https://github.com/isaacs/json-stringify-safe).
|
6 |
|
7 | # Details
|
8 | Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/json-stringify-safe.
|
9 | ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/json-stringify-safe/index.d.ts)
|
10 | ````ts
|
11 | export = stringify;
|
12 |
|
13 | declare function stringify(
|
14 | obj: any,
|
15 | serializer?: stringify.EntryProcessor | null,
|
16 | indent?: string | number | null,
|
17 | decycler?: stringify.EntryProcessor,
|
18 | ): string;
|
19 |
|
20 | declare namespace stringify {
|
21 | function getSerialize(serializer: EntryProcessor | null, decycler?: EntryProcessor): EntryProcessor;
|
22 |
|
23 | type EntryProcessor = (key: string, value: any) => any;
|
24 | }
|
25 |
|
26 | ````
|
27 |
|
28 | ### Additional Details
|
29 | * Last updated: Tue, 07 Nov 2023 03:09:37 GMT
|
30 | * Dependencies: none
|
31 |
|
32 | # Credits
|
33 | These definitions were written by [BendingBender](https://github.com/BendingBender).
|
34 |
|
\ | No newline at end of file |