tsify icon indicating copy to clipboard operation
tsify copied to clipboard

Generate types instead of interfaces

Open ColonelThirtyTwo opened this issue 1 year ago • 1 comments

Types are more flexible. Interfaces cause the crate to generate invalid typescript by attempting to extend a type in some cases, like when flattening a tagged enum into a struct.

ColonelThirtyTwo avatar Dec 08 '23 21:12 ColonelThirtyTwo

I for one find this undesirable, it should at least be under a feature flag or somehow optional

Swolebrain avatar Dec 21 '23 01:12 Swolebrain