Skip to content

Commit 7f4750d

Browse files
committed
Forgot to convert the Dns module
1 parent cad1d68 commit 7f4750d

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

src/Dns.res

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
1-
type lookupOptions
2-
@obj
3-
external lookupOptions: (
4-
~family: int=?,
5-
~hints: int=?,
6-
~all: bool=?,
7-
~verbatim: bool=?,
8-
) => lookupOptions = ""
1+
type options = {
2+
family?: int,
3+
hints?: int,
4+
all?: bool,
5+
verbatim?: bool,
6+
}
97
@module("dns") @scope("promise")
108
external lookup: string => Js.Promise.t<array<{"address": string, "family": int}>> = "lookup"
119
@module("node:dns") @scope("promise")
1210
external lookupWithOptions: (
1311
string,
14-
lookupOptions,
12+
options,
1513
) => Js.Promise.t<array<{"address": string, "family": int}>> = "lookup"
1614
@module("node:dns") @scope("promise")
1715
external lookupService: (string, int) => Js.Promise.t<{"hostname": string, "service": string}> =
@@ -81,7 +79,7 @@ module CallbackAPI = {
8179
@module("node:dns")
8280
external lookup: (string, (Js.Exn.t, string, int) => unit) => string = "lookup"
8381
@module("node:dns")
84-
external lookupWithOptions: (string, lookupOptions, (Js.Exn.t, string, int) => unit) => string =
82+
external lookupWithOptions: (string, options, (Js.Exn.t, string, int) => unit) => string =
8583
"lookup"
8684
@module("node:dns")
8785
external getServers: unit => array<string> = "getServers"

src/Http.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ type requestOptions = {
687687
host?: string,
688688
hostName?: string,
689689
localAddress?: string,
690-
lookup?: (string, Dns.lookupOptions, (Js.Exn.t, string, int) => unit) => string,
690+
lookup?: (string, Dns.options, (Js.Exn.t, string, int) => unit) => string,
691691
maxHeaderSize?: int,
692692
method?: string,
693693
path?: string,

0 commit comments

Comments
 (0)