microsoft / microsoft/TypeScript

JSDoc trying to parse tag names where tag names aren't possible

Open
#20,000 1 comment 1 reaction 1 assignee View on GitHub

@sandersn is already working on this.

Since Nov 14, 2017.

Domain: JavaScript Domain: JSDoc In Discussion Suggestion
Dominant language
Go
Stars
111k
Forks
14.3k
Avg merge
2d 4h
Merged PRs (30d)
132

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.