Skip to content

Have namepath checks in valid-types only allow strict namepaths #374

Open
@brettz9

Description

@brettz9

As raised in #308, contexts where we are checking namepaths in valid-types also mistakenly allow for more broad types, e.g.,Array<string> should get reported in @typedef {StringArray} Array<string> but it currently is not.

I've filed jsdoctypeparser/jsdoctypeparser#86 to possibly have jsdoctypeparser facilitate strict namepath checking rather than examining the parse results more closely here.

See also jsdoc-type-pratt-parser/jsdoc-type-pratt-parser#77 and jsdoc-type-pratt-parser/jsdoc-type-pratt-parser#104

Ideally, @memberof variation pointers would be valid as well (see #521 ).


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions