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

fix: adjust enum transpile to generate var if not const enum #962

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dallastjames
Copy link

matches tsc output to correctly support declaration merging.

This would close this issue I opened in reference to supporting declaration merging. It adjusts any enum that is not a const enum to use the var declaration after transpile instead of the const declaration so that declaration merging works correctly. Since declaration merging is not possible with a const enum, those are left with the const declaration. Updated the appropriate test files to reflect this change.

matches tsc output to correctly support declaration merging
@mprobst mprobst requested a review from evmar January 2, 2019 09:38
@evmar
Copy link
Contributor

evmar commented Jan 2, 2019

Do we know that Closure supports reopening enums in this manner? I don't really understand the rules for how enums work.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants