Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transpileOnly : true will make const enum not work #1491

Open
xiaopingbuxiao opened this issue Aug 13, 2022 · 1 comment
Open

transpileOnly : true will make const enum not work #1491

xiaopingbuxiao opened this issue Aug 13, 2022 · 1 comment

Comments

@xiaopingbuxiao
Copy link

Expected Behaviour

when I use transpileOnly : true , const enum will not work。 I think it is reasonable, but it would be good if had a description in the document

Actual Behaviour

//  test.d.ts
declare namespace Test {
  export const enum Hello {
    Hello = 1
  }
}
// index.ts

console.log(Test.Hello.Hello)

image

Steps to Reproduce the Problem

Location of a Minimal Repository that Demonstrates the Issue.

@xiaopingbuxiao
Copy link
Author

#331

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

No branches or pull requests

1 participant