Skip to content

Commit c9782fd

Browse files
authored
Merge pull request #3 from domoritz/patch-1
Add typings
2 parents 266d408 + c14306c commit c9782fd

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

index.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
declare module 'fast-json-stable-stringify' {
2+
function stringify(obj: any): string;
3+
export = stringify;
4+
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "2.0.0",
44
"description": "deterministic `JSON.stringify()` - a faster version of substack's json-stable-strigify without jsonify",
55
"main": "index.js",
6+
"types": "index.d.ts",
67
"dependencies": {},
78
"devDependencies": {
89
"benchmark": "^2.1.4",

0 commit comments

Comments
 (0)