소스 검색

fix(types): wrong parameter type in onLoadProgress (#538)

WebViewProgressEvent musst be wrapped within NativeSyntheticEvent
manuelblum 5 년 전
부모
커밋
5892601c29
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3
    1
      src/WebViewTypes.ts

+ 3
- 1
src/WebViewTypes.ts 파일 보기

@@ -91,7 +91,7 @@ export interface WebViewNativeEvent {
91 91
   lockIdentifier: number;
92 92
 }
93 93
 
94
-export interface WebViewProgressEvent extends WebViewNativeEvent {
94
+export interface WebViewNativeProgressEvent extends WebViewNativeEvent {
95 95
   progress: number;
96 96
 }
97 97
 
@@ -122,6 +122,8 @@ export interface WebViewError extends WebViewNativeEvent {
122 122
 
123 123
 export type WebViewEvent = NativeSyntheticEvent<WebViewNativeEvent>;
124 124
 
125
+export type WebViewProgressEvent = NativeSyntheticEvent<WebViewNativeProgressEvent>;
126
+
125 127
 export type WebViewNavigationEvent = NativeSyntheticEvent<WebViewNavigation>;
126 128
 
127 129
 export type WebViewMessageEvent = NativeSyntheticEvent<WebViewMessage>;