File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
testdata/tests/cases/conformance/moduleResolution Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -3106,7 +3106,7 @@ func IsPartOfExclusivelyTypeOnlyImportOrExportDeclaration(node *Node) bool {
3106
3106
func IsEmittableImport (node * Node ) bool {
3107
3107
switch node .Kind {
3108
3108
case KindImportDeclaration :
3109
- return node .AsImportDeclaration ().ImportClause == nil || ! node .AsImportDeclaration ().ImportClause .IsTypeOnly ()
3109
+ return node .AsImportDeclaration ().ImportClause != nil && ! node .AsImportDeclaration ().ImportClause .IsTypeOnly ()
3110
3110
case KindExportDeclaration :
3111
3111
return ! node .AsExportDeclaration ().IsTypeOnly
3112
3112
case KindImportEqualsDeclaration :
Original file line number Diff line number Diff line change
1
+ // @strict : true
2
+ // @verbatimModuleSyntax : true,false
3
+ // @noUncheckedSideEffectImports : true,false
4
+ // @noEmit : true
5
+ // @noTypesAndSymbols : true
6
+
7
+ // https://github.com/microsoft/typescript-go/issues/1190
8
+
9
+ // @filename : /types.d.ts
10
+ export type MyType = { foo : string ; } ;
11
+
12
+ // @filename : /index.ts
13
+ import "./types.d.ts" ;
You can’t perform that action at this time.
0 commit comments