Skip to content

Commit 703fbce

Browse files
committedNov 1, 2023
Fix: support result in GenType.
1 parent 3e93173 commit 703fbce

File tree

4 files changed

+25
-16
lines changed

4 files changed

+25
-16
lines changed
 

‎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)