Skip to content

Commit bac7fd5

Browse files

File tree

‎reason-react-native/src/apis/AppState.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ external currentState: t = "";
2222
[@bs.scope "AppState"] [@bs.module "react-native"]
2323
external addEventListener:
2424
([@bs.string] [ | `change(t => unit) | `memoryWarning(unit => unit)]) =>
25-
EventSubscription.t =
25+
unit =
2626
"";
2727
2828
[@bs.scope "AppState"] [@bs.module "react-native"]

‎reason-react-native/src/apis/AppState.re‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ external currentState: t = "";
1515
[@bs.scope "AppState"] [@bs.module "react-native"]
1616
external addEventListener:
1717
([@bs.string] [ | `change(t => unit) | `memoryWarning(unit => unit)]) =>
18-
EventSubscription.t =
18+
unit =
1919
"";
2020

2121
[@bs.scope "AppState"] [@bs.module "react-native"]

‎reason-react-native/src/apis/AppState.rei‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ external currentState: t = "";
1515
[@bs.scope "AppState"] [@bs.module "react-native"]
1616
external addEventListener:
1717
([@bs.string] [ | `change(t => unit) | `memoryWarning(unit => unit)]) =>
18-
EventSubscription.t =
18+
unit =
1919
"";
2020

2121
[@bs.scope "AppState"] [@bs.module "react-native"]

‎reason-react-native/src/apis/BackHandler.md‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@ wip: true
55
---
66

77
```reason
8-
type remove = {. "remove": unit => unit};
9-
108
[@bs.scope "BackHandler"] [@bs.module "react-native"]
119
external exitApp: unit => unit = "";
1210
1311
[@bs.scope "BackHandler"] [@bs.module "react-native"]
1412
external addEventListener:
15-
([@bs.string] [ | `backPress | `hardwareBackPress], unit => bool) => remove =
13+
([@bs.string] [ | `backPress | `hardwareBackPress], unit => bool) =>
14+
EventSubscription.t =
1615
"";
1716
1817
[@bs.scope "BackHandler"] [@bs.module "react-native"]

‎reason-react-native/src/apis/BackHandler.re‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
type remove = {. "remove": unit => unit};
2-
31
[@bs.scope "BackHandler"] [@bs.module "react-native"]
42
external exitApp: unit => unit = "";
53

64
[@bs.scope "BackHandler"] [@bs.module "react-native"]
75
external addEventListener:
8-
([@bs.string] [ | `backPress | `hardwareBackPress], unit => bool) => remove =
6+
([@bs.string] [ | `backPress | `hardwareBackPress], unit => bool) =>
7+
EventSubscription.t =
98
"";
109

1110
[@bs.scope "BackHandler"] [@bs.module "react-native"]

‎reason-react-native/src/apis/NetInfo.md‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,9 @@ type info = {
4949
"effectiveType": EffectiveConnectionType.t,
5050
};
5151
52-
type remove = {. "remove": unit => unit};
53-
5452
[@bs.module "react-native"] [@bs.scope "NetInfo"]
5553
external addEventListener:
56-
([@bs.string] [ | `connectionChange], info => unit) => remove =
54+
([@bs.string] [ | `connectionChange], info => unit) => EventSubscription.t =
5755
"";
5856
5957
[@bs.module "react-native"] [@bs.scope "NetInfo"]
@@ -70,7 +68,7 @@ external getConnectionInfo: unit => Js.Promise.t(info) = "";
7068
module IsConnected = {
7169
[@bs.module "react-native"] [@bs.scope ("NetInfo", "isConnected")]
7270
external addEventListener:
73-
([@bs.string] [ | `connectionChange], bool => unit) => remove =
71+
([@bs.string] [ | `connectionChange], bool => unit) => EventSubscription.t =
7472
"";
7573
7674
[@bs.module "react-native"] [@bs.scope ("NetInfo", "isConnected")]

‎reason-react-native/src/apis/NetInfo.re‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,9 @@ type info = {
4242
"effectiveType": EffectiveConnectionType.t,
4343
};
4444

45-
type remove = {. "remove": unit => unit};
46-
4745
[@bs.module "react-native"] [@bs.scope "NetInfo"]
4846
external addEventListener:
49-
([@bs.string] [ | `connectionChange], info => unit) => remove =
47+
([@bs.string] [ | `connectionChange], info => unit) => EventSubscription.t =
5048
"";
5149

5250
[@bs.module "react-native"] [@bs.scope "NetInfo"]
@@ -63,7 +61,7 @@ external getConnectionInfo: unit => Js.Promise.t(info) = "";
6361
module IsConnected = {
6462
[@bs.module "react-native"] [@bs.scope ("NetInfo", "isConnected")]
6563
external addEventListener:
66-
([@bs.string] [ | `connectionChange], bool => unit) => remove =
64+
([@bs.string] [ | `connectionChange], bool => unit) => EventSubscription.t =
6765
"";
6866

6967
[@bs.module "react-native"] [@bs.scope ("NetInfo", "isConnected")]

‎reason-react-native/src/apis/NetInfo.rei‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,9 @@ type info = {
4242
"_type": ConnectionType.t,
4343
};
4444

45-
type remove = {. "remove": unit => unit};
46-
4745
[@bs.module "react-native"] [@bs.scope "NetInfo"]
4846
external addEventListener:
49-
([@bs.string] [ | `connectionChange], info => unit) => remove =
47+
([@bs.string] [ | `connectionChange], info => unit) => EventSubscription.t =
5048
"";
5149

5250
[@bs.module "react-native"] [@bs.scope "NetInfo"]
@@ -63,7 +61,7 @@ external getConnectionInfo: unit => Js.Promise.t(info) = "";
6361
module IsConnected: {
6462
[@bs.module "react-native"] [@bs.scope ("NetInfo", "isConnected")]
6563
external addEventListener:
66-
([@bs.string] [ | `connectionChange], bool => unit) => remove =
64+
([@bs.string] [ | `connectionChange], bool => unit) => EventSubscription.t =
6765
"";
6866

6967
[@bs.module "react-native"] [@bs.scope ("NetInfo", "isConnected")]

0 commit comments

Comments
 (0)