Skip to content

Enable isolatedModules flag - #6

Merged
lucaswerkmeister merged 1 commit into
masterfrom
isolatedModules
Jun 8, 2020
Merged

lucaswerkmeister merged 1 commit into
masterfrom
isolatedModules

Conversation

@lucaswerkmeister

Copy link
Copy Markdown
Member

With this flag, TypeScript will report an error if we use features that don’t work in isolated transpilation mode (see documentation), such as const enums. (Technically, it won’t complain if you declare a const enum, but it will complain if you try to access it in the test file.)

With this flag, TypeScript will report an error if we use features that
don’t work in isolated transpilation mode [1], such as const enums.
(Technically, it won’t complain if you *declare* a const enum, but it
will complain if you try to access it in the test file.)

[1]: https://microsoft.github.io/TypeScript-New-Handbook/reference/compiler-options/#isolatedmodules

@wiese wiese left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This sounds sensible.

@lucaswerkmeister
lucaswerkmeister merged commit 5a73832 into master Jun 8, 2020
@lucaswerkmeister
lucaswerkmeister deleted the isolatedModules branch June 8, 2020 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants