Skip to content

Commit

Permalink
fix(typescript-estree): ImportDeclaration.specifier to Literal (#974)
Browse files Browse the repository at this point in the history
  • Loading branch information
pablobirukov authored and bradzacher committed Sep 13, 2019
1 parent aeea4cd commit 2bf8231
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions packages/eslint-plugin/src/rules/triple-slash-reference.ts
Expand Up @@ -73,8 +73,7 @@ export default util.createRule<Options, MessageIds>({
return {
ImportDeclaration(node): void {
if (programNode) {
const source = node.source as TSESTree.Literal;
hasMatchingReference(source);
hasMatchingReference(node.source);
}
},
TSImportEqualsDeclaration(node): void {
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript-estree/src/ts-estree/ts-estree.ts
Expand Up @@ -732,7 +732,7 @@ export interface Import extends BaseNode {

export interface ImportDeclaration extends BaseNode {
type: AST_NODE_TYPES.ImportDeclaration;
source: Expression;
source: Literal;
specifiers: ImportClause[];
}

Expand Down

0 comments on commit 2bf8231

Please sign in to comment.