Since variants without payloads are compiled to int
, is it possible to change the number used to represent a given variant with an annotation, like @bs.as
?
As far as I know, it was possible with @bs.deriving(jsConverter)
, but it’s not even documented anymore and it required a conversion, which is not ideal.