Skip to content

Commit 4d8df45

Browse files
committed
remove unnecessary trailing unit
1 parent 923ff7f commit 4d8df45

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

Diff for: src/Core.res

+3-3
Original file line numberDiff line numberDiff line change
@@ -70,19 +70,19 @@ module Navigation = {
7070

7171
@send external navigateDeprecated: (t, string, ~params: 'params=?) => unit = "navigateDeprecated"
7272

73-
@send external goBack: (navigation, unit) => unit = "goBack"
73+
@send external goBack: navigation => unit = "goBack"
7474

7575
@send
7676
external reset: (navigation, navigationState) => unit = "reset"
7777

7878
@send external preload: (t, string, ~params: 'params=?) => unit = "preload"
7979

80-
@send external isFocused: (navigation, unit) => bool = "isFocused"
80+
@send external isFocused: navigation => bool = "isFocused"
8181

8282
@send
8383
external dispatch: (t, action) => unit = "dispatch"
8484

85-
@send external canGoBack: (navigation, unit) => bool = "canGoBack"
85+
@send external canGoBack: navigation => bool = "canGoBack"
8686

8787
@send external setParams: (navigation, 'params) => unit = "setParams"
8888

Diff for: src/Drawer.res

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ module Navigation = {
148148
@send
149149
external setOptions: (navigation, options) => unit = "setOptions"
150150

151-
@send external jumpTo: (navigation, ~name: string, ~params: 'params=?, unit) => unit = "jumpTo"
151+
@send external jumpTo: (navigation, ~name: string, ~params: 'params=?) => unit = "jumpTo"
152152
@send external openDrawer: navigation => unit = "openDrawer"
153153
@send external closeDrawer: navigation => unit = "closeDrawer"
154154
@send external toggleDrawer: navigation => unit = "toggleDrawer"

Diff for: src/NativeStack.res

+2-2
Original file line numberDiff line numberDiff line change
@@ -232,11 +232,11 @@ module Navigation = {
232232
@deprecated("Use `push` with `~params` instead") @send
233233
external pushWithParams: (navigation, string, 'params) => unit = "push"
234234

235-
@send external pop: (navigation, ~count: int=?, unit) => unit = "pop"
235+
@send external pop: (navigation, ~count: int=?) => unit = "pop"
236236

237237
@send external popTo: (navigation, string, ~params: 'params=?) => unit = "popTo"
238238

239-
@send external popToTop: (navigation, unit) => unit = "popToTop"
239+
@send external popToTop: navigation => unit = "popToTop"
240240

241241
@send
242242
external addEventListener: (

Diff for: src/NavigationActions.res

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ type action
33
type navigateParams
44

55
@obj
6-
external navigateParams: (~routeName: string, ~params: {..}=?, unit) => navigateParams = ""
6+
external navigateParams: (~routeName: string, ~params: {..}=?) => navigateParams = ""
77

88
type backParams
99

1010
@obj
11-
external backParams: (~key: string=?, ~immediate: bool=?, unit) => navigateParams = ""
11+
external backParams: (~key: string=?, ~immediate: bool=?) => navigateParams = ""
1212

1313
@module("react-navigation") @scope("NavigationActions")
1414
external navigate: navigateParams => action = "navigate"

Diff for: src/Stack.res

+2-2
Original file line numberDiff line numberDiff line change
@@ -216,11 +216,11 @@ module Navigation = {
216216
@deprecated("Use `push` with `~params` instead") @send
217217
external pushWithParams: (navigation, string, 'params) => unit = "push"
218218

219-
@send external pop: (navigation, ~count: int=?, unit) => unit = "pop"
219+
@send external pop: (navigation, ~count: int=?) => unit = "pop"
220220

221221
@send external popTo: (navigation, string, ~params: 'params=?) => unit = "popTo"
222222

223-
@send external popToTop: (navigation, unit) => unit = "popToTop"
223+
@send external popToTop: navigation => unit = "popToTop"
224224

225225
@send
226226
external addEventListener: (

0 commit comments

Comments
 (0)