diff --git a/components/_util/isNumeric.ts b/components/_util/isNumeric.ts index 2545ed60f9..51530e2073 100644 --- a/components/_util/isNumeric.ts +++ b/components/_util/isNumeric.ts @@ -1,4 +1,4 @@ -const isNumeric = (value: any): boolean => { +const isNumeric = (value: any): value is T => { return !isNaN(parseFloat(value)) && isFinite(value); };