Skip to content

Commit 05b2934

Browse files
committed
feat: add type checks for TSImportEqualsDeclaration and ImportExpression
1 parent 6260880 commit 05b2934

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/node-utils/is-node-of-type.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ export const isImportDeclaration = ASTUtils.isNodeOfType(
3030
export const isImportDefaultSpecifier = ASTUtils.isNodeOfType(
3131
AST_NODE_TYPES.ImportDefaultSpecifier
3232
);
33+
export const isTSImportEqualsDeclaration = ASTUtils.isNodeOfType(
34+
AST_NODE_TYPES.TSImportEqualsDeclaration
35+
);
36+
export const isImportExpression = ASTUtils.isNodeOfType(
37+
AST_NODE_TYPES.ImportExpression
38+
);
3339
export const isImportNamespaceSpecifier = ASTUtils.isNodeOfType(
3440
AST_NODE_TYPES.ImportNamespaceSpecifier
3541
);

0 commit comments

Comments
 (0)