diff --git a/index.d.ts b/index.d.ts index 23e46ca..ee11404 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,4 +1,14 @@ declare module 'fast-json-stable-stringify' { - function stringify(obj: any): string; - export = stringify; + type CmpOperand = { + key: K, + value: T[K], + } + + type Options = Partial<{ + cmp: (a: CmpOperand, b: CmpOperand) => number, + cycles: Boolean, + }> + + function stringify(obj: T, opts?: Options): string; + export = stringify; }