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

Co-authored-by: iou90kant <dekang.liu@guokr.com>
This commit is contained in:
iou90 2020-09-05 19:19:50 +08:00 committed by GitHub
parent 4840eeb588
commit 4c4399cd57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

2
index.d.ts vendored
View File

@ -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.
*/