From 0c71cb70abc8e6f76768996a55d35b4c46a6edb9 Mon Sep 17 00:00:00 2001 From: StefanWerW Date: Fri, 11 Jan 2019 17:53:29 +0100 Subject: [PATCH 1/4] Update index.d.ts Add getNextHandlePosition, autoAdjustVerticalPosition and background --- types/rheostat/index.d.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/types/rheostat/index.d.ts b/types/rheostat/index.d.ts index 9e62865ce9..0008bbd616 100644 --- a/types/rheostat/index.d.ts +++ b/types/rheostat/index.d.ts @@ -20,6 +20,7 @@ export interface PublicState { } export interface Events { + getNextHandlePosition?(handleIdx: number, percentPosition: number): number; onClick?(): any; onChange?(publicState: PublicState): any; onKeyPress?(): any; @@ -31,6 +32,8 @@ export interface Events { export interface Props extends Events { algorithm?: Algorithm; + autoAdjustVerticalPosition?: boolean; + background: React.ReactType; className?: string; disabled?: boolean; handle?: React.ReactType; From 1fed61fca1a52add28963e59a46a679e8aff81ba Mon Sep 17 00:00:00 2001 From: StefanWerW Date: Fri, 11 Jan 2019 17:55:12 +0100 Subject: [PATCH 2/4] Update index.d.ts --- types/rheostat/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/rheostat/index.d.ts b/types/rheostat/index.d.ts index 0008bbd616..a7218562cd 100644 --- a/types/rheostat/index.d.ts +++ b/types/rheostat/index.d.ts @@ -1,6 +1,6 @@ -// Type definitions for rheostat 2.1 +// Type definitions for rheostat 3.0.2 // Project: https://github.com/airbnb/rheostat -// Definitions by: Sasha Bayan , Wil Lee +// Definitions by: Sasha Bayan , Wil Lee , Stefan Wer // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 From 45ede3991cae783ff0faeebc8cf3e51f5a943c64 Mon Sep 17 00:00:00 2001 From: StefanWerW Date: Fri, 11 Jan 2019 17:56:24 +0100 Subject: [PATCH 3/4] Update index.d.ts --- types/rheostat/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/rheostat/index.d.ts b/types/rheostat/index.d.ts index a7218562cd..1d9874fceb 100644 --- a/types/rheostat/index.d.ts +++ b/types/rheostat/index.d.ts @@ -33,7 +33,7 @@ export interface Events { export interface Props extends Events { algorithm?: Algorithm; autoAdjustVerticalPosition?: boolean; - background: React.ReactType; + background?: React.ReactType; className?: string; disabled?: boolean; handle?: React.ReactType; From 6fd6cdeb9a33e5c5388a22e3f050021c2a34bb39 Mon Sep 17 00:00:00 2001 From: StefanWerW Date: Tue, 15 Jan 2019 15:24:27 +0100 Subject: [PATCH 4/4] Fix MAJOR.MINOR version error --- types/rheostat/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/rheostat/index.d.ts b/types/rheostat/index.d.ts index 1d9874fceb..382ba79098 100644 --- a/types/rheostat/index.d.ts +++ b/types/rheostat/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for rheostat 3.0.2 +// Type definitions for rheostat 3.0 // Project: https://github.com/airbnb/rheostat // Definitions by: Sasha Bayan , Wil Lee , Stefan Wer // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped