Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.
This repository was archived by the owner on May 22, 2025. It is now read-only.

String enums are converted to externs with empty strings enums #1412

@zuhairtaha

Description

@zuhairtaha

If we have this enum

declare enum IOption {
  Read = 'read',
  Write = 'write'
}

The generated extern is

/** @enum {string} */
var IOption = {
  Read: '',
  Write: '',
};

It should be

/** @enum {string} */
var IOption = {
  Read: 'read',
  Write: 'write',
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions