Skip to content

Commit 5dd7cb6

Browse files
committed
Fix timer typing in Carousel
1 parent 7503deb commit 5dd7cb6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

generatedTypes/components/carousel/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ declare class Carousel extends Component<CarouselProps, CarouselState> {
1616
static defaultProps: DefaultProps;
1717
static pageControlPositions: typeof PageControlPosition;
1818
carousel: RefObject<ScrollView>;
19-
autoplayTimer?: number;
19+
autoplayTimer?: ReturnType<typeof setTimeout>;
2020
orientationChange?: boolean;
2121
skippedInitialScroll?: boolean;
2222
constructor(props: CarouselProps);

src/components/carousel/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class Carousel extends Component<CarouselProps, CarouselState> {
3434

3535
static pageControlPositions = PageControlPosition;
3636
carousel: RefObject<ScrollView> = React.createRef();
37-
autoplayTimer?: number;
37+
autoplayTimer?: ReturnType<typeof setTimeout>;
3838
orientationChange?: boolean;
3939
skippedInitialScroll?: boolean;
4040

0 commit comments

Comments
 (0)