From 4347eda0fe723f142e427be427032e68ce4c0af6 Mon Sep 17 00:00:00 2001 From: Jurriaan BW <12056384+jjhbw@users.noreply.github.com> Date: Mon, 15 Jun 2020 11:50:36 +0200 Subject: [PATCH] fixed typedef of Slider value (#24652) --- components/slider/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/slider/index.tsx b/components/slider/index.tsx index 1ad68a31c6..10d1814055 100644 --- a/components/slider/index.tsx +++ b/components/slider/index.tsx @@ -19,7 +19,7 @@ export interface SliderMarks { export type SliderValue = number | [number, number]; interface HandleGeneratorInfo { - value: number; + value?: number; dragging: boolean; index: number; rest: any[]; @@ -48,7 +48,7 @@ export interface SliderProps { vertical?: boolean; onChange?: (value: SliderValue) => void; onAfterChange?: (value: SliderValue) => void; - tipFormatter?: null | ((value: number) => React.ReactNode); + tipFormatter?: null | ((value?: number) => React.ReactNode); className?: string; id?: string; style?: React.CSSProperties;