Skip to content

Intermediate newlines+asterisks prevent @param from applying #26027

Closed

Description

/** @param 
 * {string} x
 * @param {number}
 * y
 */
function f(x,y) {
}

Expected behavior:
x: string and y: number

Actual behavior:
x: any and y: any.

Note that if you remove the asterisks but not the lines, it works as expected.

/** @param 
  {string} x
 * @param {number}
  y
 */
function f(x,y) {
}

Activity

  1. tschaub commented on Jul 30, 2018

    @tschaub
    Contributor

    Nathan Shively-Sanders (@sandersn) I put up an initial stab at this in #26067. Let me know if someone else is already tackling this (or you'd like to handle it differently).

  2. locked as resolved and limited conversation to collaborators on Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugA bug in TypeScriptDomain: JSDocRelates to JSDoc parsing and type generation

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions