Skip to content

Commit 92248af

Browse files
committed
Remove 'make' prefix from types that were previously functions
1 parent 7f4750d commit 92248af

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Errors.res

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ module Error = {
3333
module AssertionError = {
3434
type t = exn
3535
type constructor
36-
type makeOptions<'actual, 'expected, 'a, 'b> = {
36+
type options<'actual, 'expected, 'a, 'b> = {
3737
message?: string,
3838
actual?: 'actual,
3939
expected?: 'expected,
@@ -42,7 +42,7 @@ module AssertionError = {
4242
}
4343
@module("node:assert") external constructor: constructor = "AssertionError"
4444
@module("node:assert") @new
45-
external make: makeOptions<'actual, 'expected, 'a, 'b> => t = "AssertionError"
45+
external make: options<'actual, 'expected, 'a, 'b> => t = "AssertionError"
4646
@get external actual: t => 'a = "actual"
4747
@get external expected: t => 'a = "expected"
4848
@get external generatedMessage: t => bool = "generatedMessage"

src/Net.res

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,10 +248,10 @@ module Socket = {
248248
type t = t
249249
})
250250

251-
type makeOptions = {fd?: int, readable?: bool, writable?: bool}
251+
type options = {fd?: int, readable?: bool, writable?: bool}
252252

253253
@module("node:net") @new
254-
external make: (~options: makeOptions=?, unit) => t = "Socket"
254+
external make: (~options: options=?, unit) => t = "Socket"
255255
}
256256

257257
module TcpSocket = {

0 commit comments

Comments
 (0)