microsoft / microsoft/TypeScript
Overloads do not emit JSDoc on non-implementation signatures
Offen
Dieses Issue hat noch niemand übernommen.
Domain: Comment Emit
Experience Enhancement
Suggestion
- Vorherrschende Sprache
- Go
- Sterne
- 111k
- Forks
- 14.3k
- Ø Merge
- 1 T. 19 Std.
- Gemergte PRs (30 T.)
- 117
Beschreibung
TypeScript Version: 3.2.0-dev.201xxxxx
Search Terms:
Code
.ts file
/**
* this will lost
*/
function a()
function a() { }
/**
* this will keep
*/
function b() { }
function c()
/**
* this will keep, but i don't think this is good way
*/
function c() { }
Expected behavior:
all will keep
/**
* this will lost
*/
function a() { }
/**
* this will keep
*/
function b() { }
/**
* this will keep, but i don't think this is good way
*/
function c() { }
Actual behavior:
a is lost
output .js file
function a() { }
/**
* this will keep
*/
function b() { }
/**
* this will keep, but i don't think this is good way
*/
function c() { }
and when it at .d.ts
- a will keep
- b will keep too
- but c will lost
Related Issues:
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.
Rechercherichtung
Beginnen Sie mit den bereitgestellten .ts-Überladungsbeispielen oder dem verlinkten TypeScript Playground, verwenden Sie die gemeldete TypeScript-Version und vergleichen Sie die erzeugte .js- und .d.ts-Ausgabe. Als erledigt gilt die Aufgabe, wenn JSDoc aus Nicht-Implementierungs-Überladungssignaturen konsistent in der relevanten Ausgabe erhalten bleibt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- typescript
- Bereich
- compilers
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 32/100