1.3.0
- Upgrade gen_js_api to 1.0.9.
- It's now available on OPAM, so you don't have to use
opam pinfor gen_js_api anymore.
- It's now available on OPAM, so you don't have to use
- Ts2ocaml now merges enum case names if they have the same value.
- This is because gen_js_api now profibits enum cases with duplicate values.
- This is a breaking change.
enum Foo { A = 1, B = 1, C = 2 }module Foo: sig
(* before *)
type t = [ `A [@js 1] | `B [@js 2] | `C [@js 2] ] [@js.enum]
(* after *)
type t = [ `A_B [@js 1] | `C [@js 2] ] [@js.enum]
end