microsoft / microsoft/TypeScript
JSDoc trying to parse tag names where tag names aren't possible
Aperta
@sandersn ci sta già lavorando.
Dal 14/11/2017.
Domain: JavaScript
Domain: JSDoc
In Discussion
Suggestion
- Lingua principale
- Go
- Stelle
- 111k
- Fork
- 14.3k
- Merge medio
- 1g 19h
- PR unite (30g)
- 117
Descrizione
TypeScript Version: 2.7.0-dev.201xxxxx
Code
/**
* When concatenated with a string, this automatically concatenates the user's mention instead of the Member object.
* @returns {string}
* @example
* // Logs: Hello from <@123456789>!
* console.log(`Hello from ${member}!`);
*/
toString() {
return `<@${this.nickname ? '!' : ''}${this.user.id}>`;
}
Expected behavior:
No error
Actual behavior:
node_modules/discord.js/src/structures/GuildMember.js(511,28): error TS1003: Identifier expected.
Error on @123456789 - we probably shouldn't be looking for tags in the middle of a line.
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.
Valutazione
Questa issue non è ancora stata valutata.