Skip to content

jsdoc incorrectly validates shorthand arrow functions with nested function signatures #183

@fracmak

Description

@fracmak

jsdoc correctly validates simple short hand arrow functions as such:

/** @param {String} xxx */
var funcName = xxx => xxx + 1;

but fails when you add a function signature into the mix

/** @param {String} xxx */
var funcName = xxx => xxx.then(a => a + 1);

with the error message Expected a but got xxx

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions