From db073c83bc59debbbf320387c263b71b85e71bd6 Mon Sep 17 00:00:00 2001 From: Francesco Date: Mon, 23 Nov 2020 13:23:35 +0100 Subject: [PATCH 1/2] Added readonly string[] for NumberFormatProps --- typings/number_format.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typings/number_format.d.ts b/typings/number_format.d.ts index 96425f41..af2dae83 100755 --- a/typings/number_format.d.ts +++ b/typings/number_format.d.ts @@ -39,7 +39,7 @@ declare module "react-number-format" { removeFormatting?: (formattedValue: string) => string; mask?: string | string[]; value?: number | string; - defaultValue?: number | string; + defaultValue?: number | string | readonly string[]; isNumericString?: boolean; customInput?: React.ComponentType; allowNegative?: boolean; From 251d47ba2cc5a8c3387367d6eabcf8c479d2a7e0 Mon Sep 17 00:00:00 2001 From: Francesco Date: Mon, 23 Nov 2020 13:41:21 +0100 Subject: [PATCH 2/2] adde string[] type --- typings/number_format.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typings/number_format.d.ts b/typings/number_format.d.ts index af2dae83..cb5f14ac 100755 --- a/typings/number_format.d.ts +++ b/typings/number_format.d.ts @@ -39,7 +39,7 @@ declare module "react-number-format" { removeFormatting?: (formattedValue: string) => string; mask?: string | string[]; value?: number | string; - defaultValue?: number | string | readonly string[]; + defaultValue?: number | string | string[] | readonly string[]; isNumericString?: boolean; customInput?: React.ComponentType; allowNegative?: boolean;