We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
imports-as-dependencies
typings
1 parent 75b6b8c commit e3b0d0cCopy full SHA for e3b0d0c
1 file changed
src/rules/importsAsDependencies.js
@@ -66,9 +66,6 @@ export default iterateJsdoc(({
66
let mod = nde.element.value.replace(
67
/^(@[^/]+\/[^/]+|[^/]+).*$/u, '$1',
68
);
69
- if (mod === 'typescript') {
70
- return;
71
- }
72
73
if (!moduleCheck.has(mod)) {
74
let pkg;
@@ -81,7 +78,7 @@ export default iterateJsdoc(({
81
78
// Ignore
82
79
}
83
80
84
- if (!pkg || !pkg.types) {
+ if (!pkg || (!pkg.types && !pkg.typings)) {
85
mod = `@types/${mod}`;
86
87
0 commit comments