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: Nov 22 2024 at 17:03 UTC