Skip to content

Commit

Permalink
Update typescript signature for stringify method (#1)
Browse files Browse the repository at this point in the history
* updating typescript signature of stringify method to reflect the extra parameters

* adding overload for stringify
  • Loading branch information
c4ndybar authored and BridgeAR committed Sep 4, 2018
1 parent 8acc1b0 commit 7a87478
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
declare function stringify(data: any): string;
declare function stringify(value: any, replacer?: (key: string, value: any) => any, space?: string | number): string;
declare function stringify(value: any, replacer?: (number | string)[] | null, space?: string | number): string;

export default stringify;

0 comments on commit 7a87478

Please sign in to comment.