Skip to content

jsdoc/valid-types throwing warning when we use import syntax #593

@shirotech

Description

@shirotech
warning  Syntax error in type: import('http').ClientRequest   jsdoc/valid-types

Was wondering what would be the right syntax if it's not a bug? Example below:

/**
 * @param {import('http').ClientRequest} req
 * @param {Function} [callback]
 * @return {Promise}
 */

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions