upgradeSyntaxFrom2To3
upgradeSyntaxFrom2To3 copied to clipboard
upgradeSyntaxFrom2To3 [@bs.meth] regression
I just ran upgradeSyntaxFrom2To3 on our codebase with only but a single problem (awesome job on the migration :clap:):
The following snippet:
type history =
Js.t {. length : int, location : string, action : string, push [@bs.meth] : string => unit};
was turned into
type history = {
.
"length": int, "location": string, "action": string, [@bs.meth] push : string => unit
};
A quick mention on discord quickly revealed the correct solution:
type history = {
.
"length": int, "location": string, "action": string, "push": [@bs.meth] (string => unit)
};
Fixed it seems. Sorry for the trouble!