-
-
Notifications
You must be signed in to change notification settings - Fork 149
Description
In master, we have
type fontWeight = [
| #normal
| #bold
| #100
...
| #900
]Unfortunately, this is not correct. We need a string "100", not an int 100. But this can not be represented as an enum / polymorphic variant (#"100" just gets reformatted to #100, and as far as I can see it is not currently possible to represent the difference in the AST).
We could use an abstract type + an @obj external make with the @string annotation instead, but this usage of @string is likely to get deprecated in ReScript 11, too.
Any other ideas?
Metadata
Metadata
Assignees
Labels
No labels