Skip to content

Commit

Permalink
remove unecessary [@bs.string]
Browse files Browse the repository at this point in the history
  • Loading branch information
MoOx committed Nov 6, 2020
1 parent 7510da3 commit 117f886
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/ReactNativeNetInfo.re
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ external fetch: unit => Js.Promise.t(netInfoState) = "fetch";

[@bs.module "@react-native-community/netinfo"]
external fetchInterface:
([@bs.string] [ | `cellular | `ethernet | `wifi]) =>
Js.Promise.t(netInfoState) =
[ | `cellular | `ethernet | `wifi] => Js.Promise.t(netInfoState) =
"fetch";

[@bs.module "@react-native-community/netinfo"]
Expand Down
3 changes: 1 addition & 2 deletions src/ReactNativeNetInfo.rei
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ external fetch: unit => Js.Promise.t(netInfoState) = "fetch";

[@bs.module "@react-native-community/netinfo"]
external fetchInterface:
([@bs.string] [ | `cellular | `ethernet | `wifi]) =>
Js.Promise.t(netInfoState) =
[ | `cellular | `ethernet | `wifi] => Js.Promise.t(netInfoState) =
"fetch";

[@bs.module "@react-native-community/netinfo"]
Expand Down

0 comments on commit 117f886

Please sign in to comment.