microsoft / microsoft/TypeScript

Custom JSDoc type cannot be extended

Aperta
#62,021 7 commenti 0 reazioni 1 assegnatario Rivendicata da @sandersn Vedi su GitHub
Needs Proposal Suggestion
Lingua principale
Go
Stelle
111k
Fork
14.3k
Merge medio
2g 4h
PR unite (30g)
132

Descrizione

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:
```js
/**
* @typedef {object} baseType
* @property {string} baseProperty
*/
```
2. Define a child type and add a property:
```js
/**
* @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:

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.