Skip to content

Commit 6fc7130

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

File tree

5 files changed

+28
-16
lines changed

5 files changed

+28
-16
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 22 additions & 13 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)