mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Exporting the function correctly Fixing pretty much everything Adding safe-json-stringify type
14 lines
440 B
TypeScript
14 lines
440 B
TypeScript
// Type definitions for safe-json-stringify 1.0
|
|
// 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;
|
|
}
|
|
|
|
declare function safeJsonStringify(data: object): string;
|
|
|
|
export = safeJsonStringify;
|