Hello, I'm very new to Gleam, so I don't know what I'm doing yet. I'm trying to expose a type that is backed by an Elixir struct. The struct has a field named "type" and I can't seem to represent that in a Gleam custom type. the compiler complains:
pub type Event {
Event(
id: String,
type: String,
)
}
type: String,
^^^^ I was not expecting this.
I assume this is because I'm trying to use a reserved word. If I owned the type, I would likely rename it, is there anything I can do from the Gleam side?
Thanks