Browse Source

Fix(types): Update Typescript definition file, declaring WebView class as a generic class (#1604)

Co-authored-by: iou90kant <dekang.liu@guokr.com>
iou90 3 years ago
parent
commit
4c4399cd57
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      index.d.ts

+ 1
- 1
index.d.ts View File

@@ -6,7 +6,7 @@ export { FileDownload, WebViewMessageEvent, WebViewNavigation } from "./lib/WebV
6 6
 
7 7
 export type WebViewProps = IOSWebViewProps & AndroidWebViewProps;
8 8
 
9
-declare class WebView extends Component<WebViewProps> {
9
+declare class WebView<P = {}> extends Component<WebViewProps & P> {
10 10
     /**
11 11
      * Go back one page in the webview's history.
12 12
      */