Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Add a new check to flag use of const enum in declaration files #102

Closed
mhegazy opened this issue Jan 19, 2018 · 2 comments
Closed

Add a new check to flag use of const enum in declaration files #102

mhegazy opened this issue Jan 19, 2018 · 2 comments
Labels

Comments

@mhegazy
Copy link
Contributor

mhegazy commented Jan 19, 2018

const enums break single file compilation. we should add a check to flag them and make sure no new ones are added at least.

@mhegazy mhegazy added the bug label Jan 19, 2018
@mhegazy mhegazy assigned ghost Jan 19, 2018
@ghost ghost mentioned this issue Jan 19, 2018
@ghost ghost closed this as completed in #104 Jan 23, 2018
@zspitz
Copy link

zspitz commented Jan 31, 2018

const enums break single file compilation

@mhegazy Could you elaborate on this? Ambient const enums are useful in documenting fixed values not made available by the library's object model.

@ghost
Copy link

ghost commented Feb 1, 2018

For reference, looks like that question was answered in microsoft/TypeScript#20703

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

No branches or pull requests

2 participants