enum Align {
Left,
Center,
Right
}
generates
export type Align = AlignLeft | AlignCenter | AlignRight;
export interface AlignLeft {
tag: 'left',
}
export interface AlignCenter {
tag: 'center',
}
export interface AlignRight {
tag: 'right',
}
isn't this too complex? Can it just be export type Align = 'left' | 'center' | 'right'
?
This is a good question, can you post an issue to the Jco repo to discuss further? https://github.com/bytecodealliance/jco
done https://github.com/bytecodealliance/jco/issues/438
Last updated: Dec 23 2024 at 12:05 UTC