Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 539c911

Browse files
committed
fix: types
1 parent 63a48c0 commit 539c911

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

packages/scope-manager/src/referencer/ImportReferencer.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,12 @@ class ImportReferencer extends Visitor {
2020
| TSESTree.ImportNamespaceSpecifier
2121
| TSESTree.ImportSpecifier,
2222
): void {
23-
this.referencer.visitPattern(id, pattern => {
24-
this.referencer
25-
.currentScope()
26-
.defineIdentifier(
27-
pattern,
28-
new ImportBindingDefinition(pattern, specifier, this.declaration),
29-
);
30-
});
23+
this.referencer
24+
.currentScope()
25+
.defineIdentifier(
26+
id,
27+
new ImportBindingDefinition(id, specifier, this.declaration),
28+
);
3129
}
3230

3331
ImportNamespaceSpecifier(node: TSESTree.ImportNamespaceSpecifier): void {

0 commit comments

Comments
 (0)