diff --git a/types/react-paginate/index.d.ts b/types/react-paginate/index.d.ts index b6b50170c2..92f0a36f8f 100644 --- a/types/react-paginate/index.d.ts +++ b/types/react-paginate/index.d.ts @@ -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 , Wouter Hardeman , pegel03 +// Definitions by: Simon Hartcher +// Wouter Hardeman +// pegel03 +// Simon Archer // 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; diff --git a/types/react-paginate/react-paginate-tests.tsx b/types/react-paginate/react-paginate-tests.tsx index 31efb805ce..bb7fe6d552 100644 --- a/types/react-paginate/react-paginate-tests.tsx +++ b/types/react-paginate/react-paginate-tests.tsx @@ -26,6 +26,7 @@ class Test extends React.Component<{}, {}> { nextLinkClassName={'next-a'} disabledClassName={'disabled'} hrefBuilder={(pageIndex: number) => null} + extraAriaContext={'aria'} /> ); }