Closed lstellway closed 3 years ago
Please excuse me if I have it wrong, but I believe the slides property should have an array ([]) type definition.
slides
[]
Setup
react-flickity-component:3.5.0
flickity:2.2.1
typescript
<Flickity flickityRef={(ref) => setCarousel(ref)} {...options} />
Flickity
const setCarousel = (carousel) => { console.log(carousel); };
Expected Result Console will log an object with a slides property that is an array.
This should be a quick fix - once confirmed, I would be happy to create a pull request.
@loganstellway This looks reasonable, feel free to open a PR
Description
Please excuse me if I have it wrong, but I believe the
slides
property should have an array ([]
) type definition.Setup
react-flickity-component:3.5.0
flickity:2.2.1
typescript
Testing
Flickity
reference object:Expected Result Console will log an object with a
slides
property that is an array.This should be a quick fix - once confirmed, I would be happy to create a pull request.