Browse Source

Add default type argument

iou90kant 4 years ago
parent
commit
c00ee72a58
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<P> extends Component<WebViewProps & P> {
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
      */