From 3f29ccfca390f724ddcc51b4ff98401c08a706be Mon Sep 17 00:00:00 2001 From: Simon Archer Date: Mon, 19 Jun 2017 15:02:07 +0000 Subject: [PATCH] Definitions for react-paginate 4.3. --- types/react-paginate/index.d.ts | 12 ++++++++++-- types/react-paginate/react-paginate-tests.tsx | 1 + 2 files changed, 11 insertions(+), 2 deletions(-) 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'} /> ); }