Skip to content

Commit a852d15

Browse files
authored
Merge pull request #98 from sag1v/fix-types-interfaces
export types resolve #95
2 parents ce431ae + 46b8c53 commit a852d15

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/react-elastic-carousel/components/Carousel.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -760,6 +760,7 @@ Carousel.defaultProps = {
760760
autoPlaySpeed: 2000,
761761

762762
// callbacks
763+
onChange: noop,
763764
onNextEnd: noop,
764765
onPrevEnd: noop,
765766
onNextStart: noop,

src/react-elastic-carousel/index.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
import * as React from "react";
22

3-
type RenderArrowProps = {
3+
export type RenderArrowProps = {
44
type: "PREV" | "NEXT";
55
onClick: () => void;
66
isEdge: boolean;
77
};
88

9-
type RenderPaginationProps = {
9+
export type RenderPaginationProps = {
1010
pages: number[];
1111
activePage: number;
1212
// The onClick event that sets the state of the carousel and sends
1313
// it to a specific page.
1414
onClick: (indicatorId: string) => void;
1515
};
1616

17-
type ItemObject = {
17+
export type ItemObject = {
1818
// Children's props
1919
object: any;
2020
index: number;
2121
};
2222

23-
type Breakpoint = {
23+
export type Breakpoint = {
2424
itemsToScroll: number;
2525
itemsToShow: number;
2626
};

0 commit comments

Comments
 (0)