Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/apis/AppRegistry.res
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ type runnable<'a> = {

type registry<'a> = {
sections: array<section>,
runnables: Js.Dict.t<runnable<'a>>,
runnables: dict<runnable<'a>>,
}

@module("react-native") @scope("AppRegistry")
Expand All @@ -50,7 +50,7 @@ external getRunnable: appKey => option<runnable<'a>> = "getRunnable"
external getSectionKeys: unit => array<string> = "getSectionKeys"

@module("react-native") @scope("AppRegistry")
external getSections: unit => Js.Dict.t<runnable<'a>> = "getSections"
external getSections: unit => dict<runnable<'a>> = "getSections"

// multiple externals
@module("react-native") @scope("AppRegistry")
Expand Down
2 changes: 1 addition & 1 deletion src/apis/NativeModules.res
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// external myFunc: unit => unit = "myFunc"

@module("react-native")
external nativeModules: Js.Dict.t<'a> = "NativeModules"
external nativeModules: dict<'a> = "NativeModules"

@module("react-native")
external requireNativeComponent: (string, @as(json`null`) _) => React.component<'a> =
Expand Down
2 changes: 1 addition & 1 deletion src/apis/PermissionsAndroid.res
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ external rationale: (
unit,
) => rationale = ""

type dict = Js.Dict.t<Result.t>
type dict = dict<Result.t>

@scope("PermissionsAndroid") @module("react-native")
external check: Permission.t => promise<bool> = "check"
Expand Down
2 changes: 1 addition & 1 deletion src/apis/Settings.res
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
external get: string => string = "get"

@module("react-native") @scope("Settings")
external set: Js.Dict.t<string> => unit = "set"
external set: dict<string> => unit = "set"

type watchToken

Expand Down
4 changes: 2 additions & 2 deletions src/components/Image.res
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type uriSource = {
uri: string,
bundle?: string,
method?: string,
headers?: Js.Dict.t<string>,
headers?: dict<string>,
body?: string,
cache?: cache,
scale?: float,
Expand All @@ -24,7 +24,7 @@ external uriSource: (
~uri: string,
~bundle: string=?,
~method: string=?,
~headers: Js.Dict.t<string>=?,
~headers: dict<string>=?,
~body: string=?,
~cache: cache=?,
~scale: float=?,
Expand Down
Loading