Skip to content

Opt in for more TS/JS-friendly enum representation. #8591

Description

@back2dos

It would be nice if there were a way to make the compiler emit code that puts the constructor name into the object (under e.g. a $type property), because that way we could use enums in APIs we expose to other frontend teams (which use JS/TS). Maybe via a compiler flag, that would also control the property name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions