/
index.d.ts
33 lines (24 loc) · 893 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
declare module 'react-carousel-query' {
import React from 'react';
interface Item {
id: string | number;
}
interface GeneralProps {
renderBadge?: () => React.ReactElement;
renderArrow?: () => React.ReactElement;
hideIndex?: boolean;
showArrows?: boolean;
}
interface ReactCarouselQueryProps extends GeneralProps {
renderItem: ({ item }: { item: Item }) => React.ReactElement;
getData: ({ offset, limit, total }: { offset: number; limit: number, total: number }) => React.ReactElement;
fetchStep?: number;
}
interface ReactCarouselProps extends GeneralProps {
children: React.ReactElement[];
}
const ReactCarouselQuery: React.FC<ReactCarouselQueryProps>;
const ReactCarousel: React.FC<ReactCarouselProps>;
export default ReactCarouselQuery;
export { ReactCarousel }
}