I want to use this for defining html element types (part of a virtual dom solution) but as class is a reserved word I am not able to do this:
typedef Attributes =
{
id: String,
style: String,
class: String
}
The name is perfectly valid in JavaScript (as far as I am aware of): so is there a way to trick the compiler into accepting this?