Skip to content

Commit

Permalink
Merge d748301 into 49e230d
Browse files Browse the repository at this point in the history
  • Loading branch information
sxwei123 committed Jan 3, 2021
2 parents 49e230d + d748301 commit 3076d15
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
declare module 'fast-json-stable-stringify' {
function stringify(obj: any): string;
declare module "fast-json-stable-stringify" {
interface KeyValue {
key: string;
value: any;
}

type ComparatorFunction = (a: KeyValue, b: KeyValue) => number;

function stringify(
obj: any,
opts?:
| {
cmp?: ComparatorFunction;
cycles?: boolean;
}
| ComparatorFunction
): string;

export = stringify;
}

0 comments on commit 3076d15

Please sign in to comment.