From 7a874787572eb373f6ce8d9c547ddc53165c832e Mon Sep 17 00:00:00 2001 From: Andy Darr Date: Tue, 4 Sep 2018 11:10:33 -0400 Subject: [PATCH] Update typescript signature for stringify method (#1) * updating typescript signature of stringify method to reflect the extra parameters * adding overload for stringify --- index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 1d6d1ac..e8495b2 100644 --- a/index.d.ts +++ b/index.d.ts @@ -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;