npm.io
5.0.3 • Published 2 years ago

@types/json-stringify-safe

Licence
MIT
Version
5.0.3
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/json-stringify-safe

Summary

This package contains type definitions for json-stringify-safe (https://github.com/isaacs/json-stringify-safe).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/json-stringify-safe.

index.d.ts

export = stringify;

declare function stringify(
    obj: any,
    serializer?: stringify.EntryProcessor | null,
    indent?: string | number | null,
    decycler?: stringify.EntryProcessor,
): string;

declare namespace stringify {
    function getSerialize(serializer: EntryProcessor | null, decycler?: EntryProcessor): EntryProcessor;

    type EntryProcessor = (key: string, value: any) => any;
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 0337 GMT
  • Dependencies: none

Credits

These definitions were written by BendingBender.