From b010e0e04f04dc067016078f3a9db2bfc8f77a6b Mon Sep 17 00:00:00 2001 From: Silver Chen Date: Mon, 23 Sep 2019 18:34:02 +0200 Subject: [PATCH] fix(types): Make onContentProcessDidTerminate optional (#890) --- src/WebViewTypes.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/WebViewTypes.ts b/src/WebViewTypes.ts index 7bfe61c..d25e066 100644 --- a/src/WebViewTypes.ts +++ b/src/WebViewTypes.ts @@ -271,7 +271,7 @@ export interface IOSNativeWebViewProps extends CommonNativeWebViewProps { pagingEnabled?: boolean; scrollEnabled?: boolean; useSharedProcessPool?: boolean; - onContentProcessDidTerminate: (event: WebViewTerminatedEvent) => void; + onContentProcessDidTerminate?: (event: WebViewTerminatedEvent) => void; } export interface IOSWebViewProps extends WebViewSharedProps { @@ -450,7 +450,7 @@ export interface IOSWebViewProps extends WebViewSharedProps { * Function that is invoked when the WebKit WebView content process gets terminated. * @platform ios */ - onContentProcessDidTerminate: (event: WebViewTerminatedEvent) => void; + onContentProcessDidTerminate?: (event: WebViewTerminatedEvent) => void; } export interface AndroidWebViewProps extends WebViewSharedProps {