Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
ZYMoridae committed Jun 17, 2019
1 parent 87850e1 commit 8e418e1
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
node_modules
lib
package-lock.json
yarn.lock

README.html
README.html
lib/*.map
25 changes: 25 additions & 0 deletions lib/PaginationComponent.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import React from 'react';
import '../src/PaginationComponent.css';
declare type PaginationComponentState = {
perPage: number;
orderBy: string;
page: number;
};
declare type PaginationComponentProps = {
onPageChanged: (page: number, perPage: number, orderBy: string) => void;
count: number;
initialPage: number;
nextIcon?: React.ReactDOM;
previousIcon?: React.ReactDOM;
};
declare class PaginationComponent extends React.Component<PaginationComponentProps, PaginationComponentState> {
constructor(props: any);
updateUrlParmas(page: number, perPage: number, orderBy: string): void;
componentWillMount(): void;
componentDidMount(): void;
pageChanged: (item: number) => void;
previousBtnClick: () => void;
nextBtnClick: () => void;
render(): JSX.Element;
}
export default PaginationComponent;
Loading

0 comments on commit 8e418e1

Please sign in to comment.