microsoft / microsoft/TypeScript
Extending @typedefs by adding additional properties doesn't seem to work?
Offen
@sandersn arbeitet bereits daran.
Seit 23.2.2021.
Needs Proposal
Suggestion
- Vorherrschende Sprache
- Go
- Sterne
- 111k
- Forks
- 14.3k
- Ø Merge
- 2 T. 4 Std.
- Gemergte PRs (30 T.)
- 132
Beschreibung
I know this can be done with an intersection type, but that can often get quite verbose as it often requires an additional typedef to be defined.
As you can see in the below screenshot, i would expect propThree to be present in the extended const.
Is this syntax supported by vscode, looking around it seems to be in webstorm?

Sandbox example: https://codesandbox.io/s/vigilant-https-7h845?file=/src/Animal.js
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Bewertung
Dieses Issue wurde noch nicht bewertet.