Skip to content

Intermediate newlines+asterisks prevent @param from applying #26027

Closed
@sandersn

Description

@sandersn
/** @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) {
}

Metadata

Metadata

Assignees

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