Sfoglia il codice sorgente

Declare WebView class as a generic class

iou90kant 4 anni fa
parent
commit
f672af96e8
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      index.d.ts

+ 1
- 1
index.d.ts Vedi 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
      */