We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
TypeScript Version: 3.9.1-rc, 4.0.0-dev
Search Terms: jsdoc comment parameter property modifier constructor public private protected readonly
Code
// @allowJS: true // @checkJS: true // @out: output.js // @target: esnext // @filename: input.js class C { constructor(/** @public */ y) { } }
Expected behavior:
The emit should be be the following:
class C { constructor(/** @public */ y) { } }
Actual behavior:
The emit includes a this property assignment as if the above declaration was a TypeScript parameter property:
this
class C { constructor(/** @public */ y) { this.y = y; } }
Playground Link: NOTE: Cannot repro in the playground as the playground does not support JS output when using JS as the input language
The text was updated successfully, but these errors were encountered:
I have a fix for this that I will be posting shortly in my nodeFactory branch as part of #35282, but we may want to address this sooner during RC.
nodeFactory
/cc @DanielRosenwasser, @RyanCavanaugh
Sorry, something went wrong.
rbuckton
Successfully merging a pull request may close this issue.
TypeScript Version: 3.9.1-rc, 4.0.0-dev
Search Terms: jsdoc comment parameter property modifier constructor public private protected readonly
Code
Expected behavior:
The emit should be be the following:
Actual behavior:
The emit includes a
this
property assignment as if the above declaration was a TypeScript parameter property:Playground Link: NOTE: Cannot repro in the playground as the playground does not support JS output when using JS as the input language
The text was updated successfully, but these errors were encountered: