Skip to content

Custom JSDoc type cannot be extended #62021

@almaceleste

Description

@almaceleste

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version: 1.99.3
  • OS Version: Linux x64 6.11.0-24-generic

Steps to Reproduce:

  1. Define a base JSDoc type:
/**
 * @typedef {object} baseType
 * @property {string} baseProperty
 */
  1. Define a child type and add a property:
/**
 * @typedef {baseType} childType
 * @property {string} childProperty
 */

Expected behavior: childType has baseProperty from baseType and childProperty from the own definition.

Actual behavior: childType has only baseProperty from baseType.

However, it works in WebStorm:

Metadata

Metadata

Assignees

Labels

Needs ProposalThis issue needs a plan that clarifies the finer details of how it could be implemented.SuggestionAn idea for TypeScript

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions