From e03d6bfc8eb2d11323085c1c8cc0809262372e7e Mon Sep 17 00:00:00 2001 From: SPWizard01 Date: Fri, 25 Jan 2019 16:06:27 +0200 Subject: [PATCH 1/5] add breakLinkClassName property --- types/react-paginate/index.d.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/types/react-paginate/index.d.ts b/types/react-paginate/index.d.ts index 4b73f0cf14..f31c730a2f 100644 --- a/types/react-paginate/index.d.ts +++ b/types/react-paginate/index.d.ts @@ -46,7 +46,12 @@ interface ReactPaginateProps { * The classname on tag `li` of the ellipsis element. */ breakClassName?: string; - + + /** + * The classname on tag `a` of the ellipsis element. + */ + breakLinkClassName?: string; + /** * The method to call when a page is clicked. Exposes the current page object as an argument. */ From 45c2c4b16010545088a9f0cb9024bf82bf0649be Mon Sep 17 00:00:00 2001 From: SPWizard01 Date: Fri, 25 Jan 2019 16:15:32 +0200 Subject: [PATCH 2/5] update test file for react-paginate types --- types/react-paginate/react-paginate-tests.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/types/react-paginate/react-paginate-tests.tsx b/types/react-paginate/react-paginate-tests.tsx index 90a8718c52..8785650bc8 100644 --- a/types/react-paginate/react-paginate-tests.tsx +++ b/types/react-paginate/react-paginate-tests.tsx @@ -12,6 +12,7 @@ class Test extends React.Component { nextLabel={'next'} breakLabel={'break-me'} breakClassName={'break-class'} + breakLinkClassName={'break-link'} onPageChange={(selectedItem: {selected: number}) => null} initialPage={2} forcePage={3} From fcc885dceb686d8cecbe99cab1bf08ddcf04cbed Mon Sep 17 00:00:00 2001 From: SPWizard01 Date: Fri, 25 Jan 2019 16:19:56 +0200 Subject: [PATCH 3/5] bump version number to 6.2.1 --- types/react-paginate/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/react-paginate/index.d.ts b/types/react-paginate/index.d.ts index f31c730a2f..73d38428e8 100644 --- a/types/react-paginate/index.d.ts +++ b/types/react-paginate/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for react-paginate 6.0 +// Type definitions for react-paginate 6.2.1 // Project: https://github.com/AdeleD/react-paginate // Definitions by: Simon Hartcher // Wouter Hardeman @@ -6,6 +6,7 @@ // Simon Archer // Yasunori Ohoka // Shingo Sato +// SPWizard01 // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 From c5b8e3b5cd36fa35f3cd9b8cafd3e86ee3e3376c Mon Sep 17 00:00:00 2001 From: SPWizard01 Date: Fri, 25 Jan 2019 16:32:21 +0200 Subject: [PATCH 4/5] travis failing --- types/react-paginate/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react-paginate/index.d.ts b/types/react-paginate/index.d.ts index 73d38428e8..8eac0ff96a 100644 --- a/types/react-paginate/index.d.ts +++ b/types/react-paginate/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for react-paginate 6.2.1 +// Type definitions for react-paginate 6.2 // Project: https://github.com/AdeleD/react-paginate // Definitions by: Simon Hartcher // Wouter Hardeman From b363c7e18fce4dbbee8344720b388dd4c5c0379a Mon Sep 17 00:00:00 2001 From: SPWizard01 Date: Fri, 25 Jan 2019 16:40:39 +0200 Subject: [PATCH 5/5] remove trailing whitespaces --- types/react-paginate/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/react-paginate/index.d.ts b/types/react-paginate/index.d.ts index 8eac0ff96a..d66309d489 100644 --- a/types/react-paginate/index.d.ts +++ b/types/react-paginate/index.d.ts @@ -47,12 +47,12 @@ interface ReactPaginateProps { * The classname on tag `li` of the ellipsis element. */ breakClassName?: string; - + /** * The classname on tag `a` of the ellipsis element. */ breakLinkClassName?: string; - + /** * The method to call when a page is clicked. Exposes the current page object as an argument. */