Kaynağa Gözat

add back WebViewIOSLoadRequestEvent to typing

KaFai Choi 5 yıl önce
ebeveyn
işleme
73bdb1ed2a
1 değiştirilmiş dosya ile 7 ekleme ve 1 silme
  1. 7
    1
      typings/index.d.ts

+ 7
- 1
typings/index.d.ts Dosyayı Görüntüle

@@ -9,6 +9,12 @@ export interface WebViewNativeEvent {
9 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 18
 export interface WebViewProgressEvent extends WebViewNativeEvent {
13 19
   readonly progress: number;
14 20
 }
@@ -182,7 +188,7 @@ export interface IOSWebViewProps {
182 188
    * to stop loading.
183 189
    * @platform ios
184 190
    */
185
-  onShouldStartLoadWithRequest?: (event: WebViewNativeEvent) => any;
191
+  onShouldStartLoadWithRequest?: (event: WebViewIOSLoadRequestEvent) => any;
186 192
 
187 193
   /**
188 194
    * Boolean that determines whether HTML5 videos play inline or use the