Skip to content

Support Google Closure Compiler-style type expressions (JSDoc 3.2) #657

Closed
@basickarl

Description

@basickarl

I'm not sure if this should be put in #145 since that one specifically states TypeScript. Just tell me if it is!

According to the JSDoc 3.2 specification located here https://jsdoc.app/tags-type.html Google Closure Compiler-style type expressions should be supported.

Motivation

People are using TypeScript more and more, there is more information about this type of syntax rather than the old Object.<string, number> syntax which there is less information about.

Current behavior

Causes errors: Syntax error in type: [string, Message][]eslintjsdoc/valid-types

Desired behavior

No errors.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions