Browse Source

fix(types): Make onContentProcessDidTerminate optional (#890)

Silver Chen 4 years ago
parent
commit
b010e0e04f
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/WebViewTypes.ts

+ 2
- 2
src/WebViewTypes.ts View File

271
   pagingEnabled?: boolean;
271
   pagingEnabled?: boolean;
272
   scrollEnabled?: boolean;
272
   scrollEnabled?: boolean;
273
   useSharedProcessPool?: boolean;
273
   useSharedProcessPool?: boolean;
274
-  onContentProcessDidTerminate: (event: WebViewTerminatedEvent) => void;
274
+  onContentProcessDidTerminate?: (event: WebViewTerminatedEvent) => void;
275
 }
275
 }
276
 
276
 
277
 export interface IOSWebViewProps extends WebViewSharedProps {
277
 export interface IOSWebViewProps extends WebViewSharedProps {
450
    * Function that is invoked when the WebKit WebView content process gets terminated.
450
    * Function that is invoked when the WebKit WebView content process gets terminated.
451
    * @platform ios
451
    * @platform ios
452
    */
452
    */
453
-  onContentProcessDidTerminate: (event: WebViewTerminatedEvent) => void;
453
+  onContentProcessDidTerminate?: (event: WebViewTerminatedEvent) => void;
454
 }
454
 }
455
 
455
 
456
 export interface AndroidWebViewProps extends WebViewSharedProps {
456
 export interface AndroidWebViewProps extends WebViewSharedProps {