Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@types/safe-json-stringify) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Installation
npm install --save @types/safe-json-stringify
Summary
This package contains type definitions for safe-json-stringify (https://github.com/debitoor/safe-json-stringify).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/safe-json-stringify.
index.d.ts
// Type definitions for safe-json-stringify 1.1
// Project: https://github.com/debitoor/safe-json-stringify
// Definitions by: Eric Byers <https://github.com/ericbyers>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
declare namespace safeJsonStringify {
function ensureProperties(obj: any): object;
}
// see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#The_replacer_parameter
type ReplacerFn = (key: any, value: any) => any;
declare function safeJsonStringify(
data: object,
replacer?: ReplacerFn | any[] | null,
space?: string | number,
): string;
export = safeJsonStringify;
Additional Details
- Last updated: Mon, 25 Sep 2023 13:39:06 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Eric Byers.