From f47170479f7e9c394d7f53071f680e3a3d0cbb13 Mon Sep 17 00:00:00 2001 From: Andrew Starostin Date: Thu, 27 Feb 2020 01:53:39 +0300 Subject: [PATCH] Make optional props actually optional in typescript --- src/types.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/types.ts b/src/types.ts index bc81c41..1186159 100644 --- a/src/types.ts +++ b/src/types.ts @@ -10,13 +10,13 @@ export interface ITrackBackground { } export interface IProps { values: number[]; - min: number; - max: number; - step: number; - direction: Direction; - allowOverlap: boolean; - disabled: boolean; - rtl: boolean, + min?: number; + max?: number; + step?: number; + direction?: Direction; + allowOverlap?: boolean; + disabled?: boolean; + rtl?: boolean, onChange: (values: number[]) => void; onFinalChange?: (values: number[]) => void; renderThumb: (params: {