Skip to content

getEffectiveBaseTypeNode: only use JSDoc augments if there is extends - #29349

Merged
Nathan Shively-Sanders (sandersn) merged 1 commit into
microsoft:masterfrom
ajafff:augments-noextends
Feb 5, 2019
Merged

Nathan Shively-Sanders (sandersn) merged 1 commit into
microsoft:masterfrom
ajafff:augments-noextends

Conversation

@ajafff

Copy link
Copy Markdown
Contributor

Comment thread src/compiler/utilities.ts
export function getEffectiveBaseTypeNode(node: ClassLikeDeclaration | InterfaceDeclaration) {
if (isInJSFile(node)) {
const baseType = getClassExtendsHeritageElement(node);
if (baseType && isInJSFile(node)) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Daniel Rosenwasser (@DanielRosenwasser) Nathan Shively-Sanders (@sandersn) should it be error to have augments clause and not have extends clause?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think it would be too noisy. Every time we add errors like this they add noise to erroneous jsdoc -- ones where people weren't actually using the jsdoc and didn't want to.

Comment thread src/compiler/utilities.ts
export function getEffectiveBaseTypeNode(node: ClassLikeDeclaration | InterfaceDeclaration) {
if (isInJSFile(node)) {
const baseType = getClassExtendsHeritageElement(node);
if (baseType && isInJSFile(node)) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think it would be too noisy. Every time we add errors like this they add noise to erroneous jsdoc -- ones where people weren't actually using the jsdoc and didn't want to.

@sandersn
Nathan Shively-Sanders (sandersn) merged commit 12edac0 into microsoft:master Feb 5, 2019
@microsoft Microsoft (microsoft) locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants