Skip to content

Commit ac28ec6

Browse files
committed
use dict<string>
1 parent b32ba6a commit ac28ec6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/bindings/RescriptCompilerApi.res

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,10 +408,11 @@ module Compiler = {
408408
ConversionResult.decode(~fromLang=Reason, ~toLang=Reason, json)
409409
}
410410

411-
@get external ocaml: t => option<{..}> = "ocaml"
411+
@get external ocaml: t => option<dict<string>> = "ocaml"
412+
412413
let ocamlVersion = (t: t): option<string> => {
413414
switch ocaml(t) {
414-
| Some(ocaml) => ocaml->Obj.magic->Dict.get("version")
415+
| Some(ocaml) => ocaml->Dict.get("version")
415416
| None => None
416417
}
417418
}

0 commit comments

Comments
 (0)