Skip to content

Commit

Permalink
react-native-webview libdef: Make WebViewHttpError more like its fr…
Browse files Browse the repository at this point in the history
…iends.

In particular, more like `WebViewError, `WebViewMessage`, etc., just
above it.

An instance of zulip#3452.
  • Loading branch information
chrisbobbe authored and gnprice committed Jul 2, 2021
1 parent 5976aed commit 3f24d0f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions flow-typed/react-native-webview_v10.x.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,11 @@ declare module 'react-native-webview' {
description: string,
|}>;

declare export type WebViewHttpError = {
declare export type WebViewHttpError = $ReadOnly<{|
...WebViewNativeEvent,
description: string,
statusCode: number,
} & WebViewNativeEvent;
|}>;

declare export type ContentInsetProp = {|
top?: number,
Expand Down

0 comments on commit 3f24d0f

Please sign in to comment.