Skip to content

JSDoc imported types from namespaced packages do not work #88

@ekhaled

Description

@ekhaled

This works:

/**
* @type {import(./types).CustomType}
*/
let v1 = "something"

However, this doesn't:

/**
* @type {import(@someNamespace/package).CustomType}
*/
let v1 = "something"

The problem is this line https://github.com/alexprey/sveltedoc-parser/blob/dev/lib/utils.js#L7
That regex fails because of the second @ symbol on that line.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions