Definitions for react-paginate 4.3.

This commit is contained in:
Simon Archer
2017-06-19 15:02:07 +00:00
parent 8aff840533
commit 3f29ccfca3
2 changed files with 11 additions and 2 deletions
+10 -2
View File
@@ -1,6 +1,9 @@
// Type definitions for react-paginate 4.2
// Type definitions for react-paginate 4.3
// Project: https://github.com/AdeleD/react-paginate
// Definitions by: Simon Hartcher <https://github.com/deevus>, Wouter Hardeman <https://github.com/wouterhardeman>, pegel03 <https://github.com/pegel03>
// Definitions by: Simon Hartcher <https://github.com/deevus>
// Wouter Hardeman <https://github.com/wouterhardeman>
// pegel03 <https://github.com/pegel03>
// Simon Archer <https://github.com/archy-bold>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.1
@@ -111,6 +114,11 @@ interface ReactPaginateProps {
* The method is called to generate the href attribute value on tag a of each page element.
*/
hrefBuilder?(pageIndex: number): void;
/**
* Extra context to add to the aria-label HTML attribute.
*/
extraAriaContext?: string;
}
declare const ReactPaginate: React.ComponentClass<ReactPaginateProps>;
@@ -26,6 +26,7 @@ class Test extends React.Component<{}, {}> {
nextLinkClassName={'next-a'}
disabledClassName={'disabled'}
hrefBuilder={(pageIndex: number) => null}
extraAriaContext={'aria'}
/>
);
}