fix: update CarouselRef goTo args (#28090)

This commit is contained in:
Jarret Moses 2020-12-01 04:30:38 -05:00 committed by GitHub
parent dda1f2b09c
commit 4fad2ef958
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,7 +23,7 @@ export interface CarouselProps extends Omit<Settings, 'dots' | 'dotsClass'> {
}
export interface CarouselRef {
goTo: (slide: number, dontAnimate: boolean) => void;
goTo: (slide: number, dontAnimate?: boolean) => void;
next: () => void;
prev: () => void;
autoPlay: boolean;