fixed typedef of Slider value (#24652)

This commit is contained in:
Jurriaan BW 2020-06-15 11:50:36 +02:00 committed by GitHub
parent d8482546ed
commit 4347eda0fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;