Skip to content

Commit

Permalink
Add a detector for typescript import type (#439)
Browse files Browse the repository at this point in the history
Issue #438
  • Loading branch information
sveyret authored and rumpl committed Nov 1, 2019
1 parent ee61200 commit 7561f0b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/detector/typescriptImportType.js
@@ -0,0 +1,7 @@
export default function detectTypescriptImportType(node) {
return node.type === 'TSImportType'
&& node.argument
&& node.argument.value
? [node.argument.value]
: [];
}

0 comments on commit 7561f0b

Please sign in to comment.