We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
undefined
#57912
4 | undefined
Promise<undefined> | undefined
#56817
devDependencies
--preserveConstEnums
#57996
We have all these restrictions around being able to reference const enum declarations as direct values.
const enum E { A = 123, } let x = E; // ❌
(ts as any).SomeEnum
preserveConstEnums
Recently Allow cross-project references to const enums in isolatedModules when referenced project has preserveConstEnums #57914 got merged, says that you can reference const enum members from another project under isolatedDeclarations if the project has preserveConstEnums enabled.
const enum
isolatedDeclarations
We need this ourselves to enable isolatedDeclarations
Doesn't esbuild just inline enums unconditionally? Regardless of const-ness?
services
compiler
In principal, don't like looking up compiler settings from dependency projects.
Well we can do what we want, but the request came externally.
We preserved originally only for debugging purposes.
Not totally against, this, but some of us feel like our own codebase would be better served from dropping const from our enums.
const
enum
Also you want consumers not to inline, but you also don't want @foo/package-a and @foo/package-b not to inline between each other.
@foo/package-a
@foo/package-b
Revisit.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When should you be able to implicitly return
undefined
#57912
undefined
.4 | undefined
Promise<undefined> | undefined
.Knip
#56817
devDependencies
.Using const enums in value space when using
--preserveConstEnums
#57996
We have all these restrictions around being able to reference const enum declarations as direct values.
(ts as any).SomeEnum
preserveConstEnums
.Recently Allow cross-project references to const enums in isolatedModules when referenced project has preserveConstEnums #57914 got merged, says that you can reference
const enum
members from another project underisolatedDeclarations
if the project haspreserveConstEnums
enabled.We need this ourselves to enable
isolatedDeclarations
Doesn't esbuild just inline enums unconditionally? Regardless of const-ness?
preserveConstEnums
services
from enums declared incompiler
.In principal, don't like looking up compiler settings from dependency projects.
Well we can do what we want, but the request came externally.
We preserved originally only for debugging purposes.
Not totally against, this, but some of us feel like our own codebase would be better served from dropping
const
from ourenum
s.Also you want consumers not to inline, but you also don't want
@foo/package-a
and@foo/package-b
not to inline between each other.Revisit.
The text was updated successfully, but these errors were encountered: