@types/json-stable-stringify
Advanced tools
Comparing version 1.0.32 to 1.0.33
@@ -19,5 +19,5 @@ // Type definitions for json-stable-stringify 1.0 | ||
interface Options { | ||
cmp?: Comparator; | ||
space?: number | string; | ||
replacer?: Replacer; | ||
cmp?: Comparator | undefined; | ||
space?: number | string | undefined; | ||
replacer?: Replacer | undefined; | ||
} | ||
@@ -24,0 +24,0 @@ } |
{ | ||
"name": "@types/json-stable-stringify", | ||
"version": "1.0.32", | ||
"version": "1.0.33", | ||
"description": "TypeScript definitions for json-stable-stringify", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/json-stable-stringify", | ||
"license": "MIT", | ||
@@ -9,14 +10,17 @@ "contributors": [ | ||
"name": "Matt Frantz", | ||
"url": "https://github.com/mhfrantz" | ||
"url": "https://github.com/mhfrantz", | ||
"githubUsername": "mhfrantz" | ||
} | ||
], | ||
"main": "", | ||
"types": "index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
"directory": "types/json-stable-stringify" | ||
}, | ||
"scripts": {}, | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "efe50198ab5fd6ae636ae6beca8bc95a92c7ca7d68665bb1b4bef58f2ad00037", | ||
"typeScriptVersion": "2.0" | ||
"typesPublisherContentHash": "09ae596403b72c11e892944ab9d3b9c8f772de92aa1a25221b936a48797ae23f", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -8,6 +8,35 @@ # Installation | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/json-stable-stringify | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/json-stable-stringify. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/json-stable-stringify/index.d.ts) | ||
````ts | ||
// Type definitions for json-stable-stringify 1.0 | ||
// Project: https://github.com/substack/json-stable-stringify | ||
// Definitions by: Matt Frantz <https://github.com/mhfrantz> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
Additional Details | ||
* Last updated: Mon, 21 Aug 2017 21:55:03 GMT | ||
declare function stringify(obj: any, opts?: stringify.Comparator | stringify.Options): string; | ||
declare namespace stringify { | ||
interface Element { | ||
key: string; | ||
value: any; | ||
} | ||
type Comparator = (a: Element, b: Element) => number; | ||
type Replacer = (key: string, value: any) => any; | ||
interface Options { | ||
cmp?: Comparator | undefined; | ||
space?: number | string | undefined; | ||
replacer?: Replacer | undefined; | ||
} | ||
} | ||
export = stringify; | ||
```` | ||
### Additional Details | ||
* Last updated: Tue, 06 Jul 2021 21:33:48 GMT | ||
* Dependencies: none | ||
@@ -17,2 +46,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by Matt Frantz <https://github.com/mhfrantz>. | ||
These definitions were written by [Matt Frantz](https://github.com/mhfrantz). |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
4124
0
46