mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-06 13:11:46 +00:00
Avoided Function type, ditched minor patch version. Using implicit public for render function
This commit is contained in:
Vendored
+3
-3
@@ -1,4 +1,4 @@
|
||||
// Type definitions for react-paginate 4.2.0
|
||||
// Type definitions for react-paginate 4.2
|
||||
// Project: https://github.com/AdeleD/react-paginate
|
||||
// Definitions by: pegel03 <https://github.com/pegel03>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
@@ -45,7 +45,7 @@ interface ReactPaginateProps {
|
||||
/**
|
||||
* The method to call when a page is clicked. Exposes the current page object as an argument.
|
||||
*/
|
||||
onPageChange?: Function;
|
||||
onPageChange?: (n: number) => void;
|
||||
|
||||
/**
|
||||
* The initial page selected.
|
||||
@@ -110,7 +110,7 @@ interface ReactPaginateProps {
|
||||
/**
|
||||
* The method is called to generate the href attribute value on tag a of each page element.
|
||||
*/
|
||||
hrefBuilder?: Function;
|
||||
hrefBuilder?: (a: string) => void;
|
||||
}
|
||||
|
||||
declare const ReactPaginate: React.ComponentClass<ReactPaginateProps>;
|
||||
|
||||
@@ -7,7 +7,7 @@ class Test extends React.Component<{}, {}> {
|
||||
//
|
||||
}
|
||||
|
||||
public render() {
|
||||
render() {
|
||||
return (
|
||||
<ReactPaginate
|
||||
pageCount={1}
|
||||
|
||||
Reference in New Issue
Block a user