Skip to content

New help displays misleading/wrong default value for useDefineForClassFields #45503

Closed
@MartinJohns

Description

@MartinJohns

Bug Report

🔎 Search Terms

useDefineForClassFields

🕗 Version & Regression Information

  • I was unable to test this on prior versions because this new help display is introduced with version 4.4.

💻 Code

Execute this command: npx typescript@4.4.1-rc --help --all

🙁 Actual behavior

The default value false is shown for useDefineForClassFields.

image

🙂 Expected behavior

The default value depends on the target (it's true for ESNext since TypeScript 4.3, introduced in #34787).
This should be reflected in the help.

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFix AvailableA PR has been opened for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions