Преглед на файлове

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

Silver Chen преди 4 години
родител
ревизия
b010e0e04f
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2
    2
      src/WebViewTypes.ts

+ 2
- 2
src/WebViewTypes.ts Целия файл

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