Skip to content

Commit

Permalink
fix(types): included missing setPage method in TypeScript and Flow types
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusz1913 committed Sep 23, 2020
1 parent 98de57c commit cc2bcb0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ interface Props {
}

declare class Pdf extends React.Component<Props, any> {
setPage: (pageNumber: number) => void;
}

export default Pdf;
4 changes: 3 additions & 1 deletion index.js.flow
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,6 @@ export type Props = {
testID?: string
};

declare export default class Pdf extends Component<Props> {}
declare export default class Pdf extends Component<Props> {
setPage: (pageNumber: number) => void;
}

0 comments on commit cc2bcb0

Please sign in to comment.