Skip to content

Commit 39e02c0

Browse files
fix: type-check
1 parent f90daf7 commit 39e02c0

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

utils/src/ast-grep/import-statement.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import type { Rule, SgNode, SgRoot } from '@codemod.com/jssg-types/main';
22
import type Js from '@codemod.com/jssg-types/langs/javascript';
3-
import type Ts from '@codemod.com/jssg-types/langs/typescript';
43

54
export const getNodeImportStatements = (
6-
rootNode: SgRoot<Js | Ts>,
5+
rootNode: SgRoot<Js>,
76
nodeModuleName: string,
8-
): SgNode<Js | Ts>[] =>
7+
): SgNode<Js>[] =>
98
rootNode.root().findAll({
109
rule: {
1110
kind: 'import_statement',

0 commit comments

Comments
 (0)