Skip to content

Commit d698d4d

Browse files
authored
fix(typescript.ts): add importKind fields
1 parent f1c8ff5 commit d698d4d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

def/typescript.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ export default function (fork: Fork) {
3535
def("Identifier"),
3636
def("TSQualifiedName")
3737
);
38+
39+
40+
def("ImportDeclaration")
41+
.field("importKind", or("value", "type", "typeof"), () => "value");
42+
43+
def("ImportSpecifier")
44+
.field("importKind", or("value", "type", "typeof"), defaults["null"]);
3845

3946
def("TSTypeReference")
4047
.bases("TSType", "TSHasOptionalTypeParameterInstantiation")

0 commit comments

Comments
 (0)