Skip to content

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

Merged
sandersn merged 1 commit intomicrosoft:masterfrom
ajafff:augments-noextends
Feb 5, 2019
Merged

getEffectiveBaseTypeNode: only use JSDoc augments if there is extends#29349
sandersn merged 1 commit intomicrosoft:masterfrom
ajafff:augments-noextends

Conversation

@ajafff
Copy link
Copy Markdown
Contributor

@ajafff ajafff commented Jan 10, 2019

Suggested by @sandersn in #29308 (comment)

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.

@DanielRosenwasser @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 sandersn merged commit 12edac0 into microsoft:master Feb 5, 2019
@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