microsoft / microsoft/TypeScript
duplicate comments on decorated fields
Nessuno ha ancora preso questa issue.
- Lingua principale
- Go
- Stelle
- 111k
- Fork
- 14.4k
- Merge medio
- 1g 19h
- PR unite (30g)
- 117
Descrizione
🔎 Search Terms
typescript duplicate comments
🕗 Version & Regression Information
- This changed between versions ______ and _______
- This changed in commit or PR _______
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about _________
- I was unable to test this on prior versions because _______
⏯ Playground Link
💻 Code
class SharedAPI {}
export class Scene extends SharedAPI {
/**
* @property {boolean} webgl -
*/
@booleanAttribute webgl = false
/**
* @property {boolean} foo -
*/
@booleanAttribute foo = false
}
🙁 Actual behavior
duplicate comments for the foo property appear in output
🙂 Expected behavior
No duplicate comments
Additional information about the issue
The output shows this:
constructor() {
super(...arguments);
/**
* @property {boolean} webgl -
*/
this.webgl = __runInitializers(this, _webgl_initializers, false
/**
* @property {boolean} foo -
*/
);
/**
* @property {boolean} foo -
*/
this.foo = (__runInitializers(this, _webgl_extraInitializers), __runInitializers(this, _foo_initializers, false));
__runInitializers(this, _foo_extraInitializers);
}
There's an extra @property {boolean} foo - comment in the output.
Similar issue:
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia con la riproduzione collegata di TypeScript Playground usando target ES2022 e TypeScript 5.5.0-beta, quindi confronta il JavaScript emesso per i campi decorati webgl e foo. La modifica è completata quando il commento JSDoc della proprietà foo compare una sola volta, mentre l'output previsto dell'inizializzazione del decoratore rimane intatto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- typescript
- Ambito
- compilers
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Specificata chiaramente
- Idoneità per principianti
- 48/100