From 6193d2b03376f9e3dd7a7c2db387bc232f2569c3 Mon Sep 17 00:00:00 2001 From: Sena Date: Thu, 18 May 2023 12:08:38 +0000 Subject: [PATCH 1/4] made isRTL optional so it does not throw an error when not provided --- src/react-elastic-carousel/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/react-elastic-carousel/index.d.ts b/src/react-elastic-carousel/index.d.ts index 74de6eb..760c805 100644 --- a/src/react-elastic-carousel/index.d.ts +++ b/src/react-elastic-carousel/index.d.ts @@ -34,7 +34,7 @@ export interface ReactElasticCarouselProps { // Defaults to false verticalMode?: boolean; // Defaults to false - isRTL: boolean; + isRTL?: boolean; // Defaults to true pagination?: boolean; // Defaults to 500 From 61c4b58471bdcf5299376bdb4e8959834f6dea53 Mon Sep 17 00:00:00 2001 From: Sena Date: Thu, 18 May 2023 12:10:06 +0000 Subject: [PATCH 2/4] add: optional children to interface to resolve overload error --- src/react-elastic-carousel/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/react-elastic-carousel/index.d.ts b/src/react-elastic-carousel/index.d.ts index 760c805..339db40 100644 --- a/src/react-elastic-carousel/index.d.ts +++ b/src/react-elastic-carousel/index.d.ts @@ -28,6 +28,7 @@ export type Breakpoint = { }; export interface ReactElasticCarouselProps { + children? : JSX.Element; className?: string; // Defaults to 1 itemsToShow?: number; From ed1b136097a84cdb07208d64da77e576d6282028 Mon Sep 17 00:00:00 2001 From: Senanu <42738493+Sena543@users.noreply.github.com> Date: Thu, 18 May 2023 12:19:14 +0000 Subject: [PATCH 3/4] ... --- src/react-elastic-carousel/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/react-elastic-carousel/index.d.ts b/src/react-elastic-carousel/index.d.ts index 339db40..0cab394 100644 --- a/src/react-elastic-carousel/index.d.ts +++ b/src/react-elastic-carousel/index.d.ts @@ -28,7 +28,7 @@ export type Breakpoint = { }; export interface ReactElasticCarouselProps { - children? : JSX.Element; + children? : JSX.Element[]; className?: string; // Defaults to 1 itemsToShow?: number; From 727414e22cc81c3f0052b590cc477d32f78645d5 Mon Sep 17 00:00:00 2001 From: Sena Date: Mon, 6 Nov 2023 09:59:58 +0000 Subject: [PATCH 4/4] add: optional style prop type --- src/react-elastic-carousel/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/react-elastic-carousel/index.d.ts b/src/react-elastic-carousel/index.d.ts index 0cab394..e59f33a 100644 --- a/src/react-elastic-carousel/index.d.ts +++ b/src/react-elastic-carousel/index.d.ts @@ -30,6 +30,7 @@ export type Breakpoint = { export interface ReactElasticCarouselProps { children? : JSX.Element[]; className?: string; + style?: React.CSSProperties; // Defaults to 1 itemsToShow?: number; // Defaults to false