Skip to content

Commit 844a0ec

Browse files
authored
Merge pull request #1906 from chenglou/toOption
Change Js.toOpt to Js.toOption
2 parents 4e34038 + 379a042 commit 844a0ec

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

jscomp/runtime/js.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ type + 'a null_undefined = 'a nullable
6161
(** value of this type can be [undefined], [null] or ['a]
6262
this type is the same as {!Js.Null_undefined.t}*)
6363

64-
external toOpt : 'a nullable -> 'a option = "#null_undefined_to_opt"
64+
external toOption : 'a nullable -> 'a option = "#null_undefined_to_opt"
6565
external test : 'a nullable -> bool = "#is_nil_undef"
6666

6767
type boolean
@@ -144,4 +144,4 @@ module Promise = Js_promise
144144
module Option = Js_option
145145
module Result = Js_result
146146
module List = Js_list
147-
module Vector = Js_vector
147+
module Vector = Js_vector

jscomp/runtime/js.mli

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ type + 'a nullable
7373

7474
type + 'a null_undefined = 'a nullable
7575

76-
external toOpt : 'a nullable -> 'a option = "#null_undefined_to_opt"
76+
external toOption : 'a nullable -> 'a option = "#null_undefined_to_opt"
7777
external test : 'a nullable -> bool = "#is_nil_undef"
7878

7979
type boolean
@@ -203,4 +203,4 @@ module Result = Js_result
203203
module List = Js_list
204204
(** Provide utilties for list *)
205205

206-
module Vector = Js_vector
206+
module Vector = Js_vector

0 commit comments

Comments
 (0)