Skip to content

Generate objects instead of enums #1040

Open
@scottcorgan

Description

@scottcorgan

With Typescript 5.8's erasableSyntaxOnly flag and with Node's type stripping support, it looks like they're pushing us away from from using TS only language features (enum, namespaces, etc) We heavily rely on the enums as generated objects for typesafety everywhere.

Would love to be able to just generate the object version of these enums in the generated output.

(I did try with templates, but was unsuccessful)

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions