Skip to content

Commit

Permalink
Merge pull request #98 from sag1v/fix-types-interfaces
Browse files Browse the repository at this point in the history
export types resolve #95
  • Loading branch information
sag1v authored Oct 31, 2020
2 parents ce431ae + 46b8c53 commit a852d15
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/react-elastic-carousel/components/Carousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,7 @@ Carousel.defaultProps = {
autoPlaySpeed: 2000,

// callbacks
onChange: noop,
onNextEnd: noop,
onPrevEnd: noop,
onNextStart: noop,
Expand Down
8 changes: 4 additions & 4 deletions src/react-elastic-carousel/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
import * as React from "react";

type RenderArrowProps = {
export type RenderArrowProps = {
type: "PREV" | "NEXT";
onClick: () => void;
isEdge: boolean;
};

type RenderPaginationProps = {
export type RenderPaginationProps = {
pages: number[];
activePage: number;
// The onClick event that sets the state of the carousel and sends
// it to a specific page.
onClick: (indicatorId: string) => void;
};

type ItemObject = {
export type ItemObject = {
// Children's props
object: any;
index: number;
};

type Breakpoint = {
export type Breakpoint = {
itemsToScroll: number;
itemsToShow: number;
};
Expand Down

0 comments on commit a852d15

Please sign in to comment.