Browse Source

add back WebViewIOSLoadRequestEvent to typing

KaFai Choi 5 years ago
parent
commit
73bdb1ed2a
1 changed files with 7 additions and 1 deletions
  1. 7
    1
      typings/index.d.ts

+ 7
- 1
typings/index.d.ts View File

9
   readonly canGoForward: boolean;
9
   readonly canGoForward: boolean;
10
 }
10
 }
11
 
11
 
12
+export interface WebViewIOSLoadRequestEvent extends WebViewNativeEvent {
13
+  target: number;
14
+  lockIdentifier: number;
15
+  navigationType: "click" | "formsubmit" | "backforward" | "reload" | "formresubmit" | "other";
16
+}
17
+
12
 export interface WebViewProgressEvent extends WebViewNativeEvent {
18
 export interface WebViewProgressEvent extends WebViewNativeEvent {
13
   readonly progress: number;
19
   readonly progress: number;
14
 }
20
 }
182
    * to stop loading.
188
    * to stop loading.
183
    * @platform ios
189
    * @platform ios
184
    */
190
    */
185
-  onShouldStartLoadWithRequest?: (event: WebViewNativeEvent) => any;
191
+  onShouldStartLoadWithRequest?: (event: WebViewIOSLoadRequestEvent) => any;
186
 
192
 
187
   /**
193
   /**
188
    * Boolean that determines whether HTML5 videos play inline or use the
194
    * Boolean that determines whether HTML5 videos play inline or use the