Browse Source

Declare WebView class as a generic class

iou90kant 5 years ago
parent
commit
f672af96e8
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      index.d.ts

+ 1
- 1
index.d.ts View File

6
 
6
 
7
 export type WebViewProps = IOSWebViewProps & AndroidWebViewProps;
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
      * Go back one page in the webview's history.
11
      * Go back one page in the webview's history.
12
      */
12
      */