@types/json-stringify-safe
TypeScript icon, indicating that this package has built-in type declarations

5.0.1 • Public • Published

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

// Type definitions for json-stringify-safe 5.0
// Project: https://github.com/isaacs/json-stringify-safe
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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: Fri, 15 Sep 2023 20:36:37 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by BendingBender.

Readme

Keywords

none

Package Sidebar

Install

Weekly Downloads

216,922

Version

5.0.1

License

MIT

Unpacked Size

3.95 kB

Total Files

5

Last publish

Collaborators

  • types