Skip to content

Commit 6d15f20

Browse files
authored
[type]: fix 'initialIndex' type (#142)
* [type]: fix initialIndex type * remove redundant 'undefined' type
1 parent 9abc458 commit 6d15f20

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ export interface FlickityOptions {
5555
cellSelector?: string;
5656

5757
/**
58-
* Zero-based index of the initial selected cell.
58+
* Zero-based index or selector string of the initial selected cell.
5959
*/
60-
initialIndex?: number;
60+
initialIndex?: number | string;
6161

6262
/**
6363
* Enable keyboard navigation. Users can tab to a Flickity gallery, and pressing left & right keys to change cells.
@@ -178,7 +178,7 @@ export interface FlickityOptions {
178178
*
179179
* default: false
180180
*/
181-
pauseAutoPlayOnHover?:boolean;
181+
pauseAutoPlayOnHover?: boolean;
182182

183183
/**
184184
* Changes height of carousel to fit height of selected slide.

0 commit comments

Comments
 (0)