Skip to content

Commit

Permalink
Merge pull request #53 from GerritKopp/master
Browse files Browse the repository at this point in the history
Fix TypeScript definition for onError
  • Loading branch information
wonday authored Sep 28, 2017
2 parents 41c0f01 + 69ab0b8 commit e1a702f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// react-native-pdf
//
//
//
// Created by Wonday on 17/4/21.
// Copyright (c) wonday.org All rights reserved.
Expand All @@ -22,7 +22,7 @@ interface Props {
fitWidth?: boolean,
onLoadComplete?: (pageCount: number) => void,
onPageChanged?: (page: number, pageCount: number) => void,
onError?: ()=> void,
onError?: (error: string) => void,
}

declare class Pdf extends React.Component<Props, any> {}
Expand Down

0 comments on commit e1a702f

Please sign in to comment.