Skip to content

Commit a06c20c

Browse files
committed
Fix: support result in GenType.
1 parent 3e93173 commit a06c20c

File tree

5 files changed

+28
-16
lines changed

5 files changed

+28
-16
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
1313
# 11.0.0-rc.6 (Unreleased)
1414

15+
#### :bug: Bug Fix
16+
- Fix issue with GenType and `result` introduced in rc.5. https://github.com/rescript-lang/rescript-compiler/pull/6464
17+
1518
# 11.0.0-rc.5
1619

1720
#### :rocket: New Feature

jscomp/gentype/TranslateTypeExprFromTypes.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ let translateConstr ~config ~paramsTranslation ~(path : Path.t) ~typeEnv =
135135
};
136136
] );
137137
}
138-
| ( (["Pervasives"; "result"] | ["Belt"; "Result"; "t"]),
138+
| ( (["Pervasives"; "result"] | ["Belt"; "Result"; "t"] | ["result"]),
139139
[paramTranslation1; paramTranslation2] ) ->
140140
let case n name type_ =
141141
{case = {label = string_of_int n; labelJS = StringLabel name}; t = type_}

jscomp/gentype_tests/typescript-react-example/package-lock.json

+22-13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jscomp/gentype_tests/typescript-react-example/src/ImportJsValue.bs.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jscomp/gentype_tests/typescript-react-example/src/Uncurried.bs.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)