Skip to content

Commit

Permalink
Fix(types): Update Typescript definition file, declaring WebView clas…
Browse files Browse the repository at this point in the history
…s as a generic class (react-native-webview#1604)

Co-authored-by: iou90kant <[email protected]>
  • Loading branch information
iou90 and iou90kant authored Sep 5, 2020
1 parent 4840eeb commit 4c4399c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export { FileDownload, WebViewMessageEvent, WebViewNavigation } from "./lib/WebV

export type WebViewProps = IOSWebViewProps & AndroidWebViewProps;

declare class WebView extends Component<WebViewProps> {
declare class WebView<P = {}> extends Component<WebViewProps & P> {
/**
* Go back one page in the webview's history.
*/
Expand Down

0 comments on commit 4c4399c

Please sign in to comment.