-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(es/resolver): Ignore qualifiers of
TsImportType
(#8299)
- Loading branch information
Showing
3 changed files
with
19 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
crates/swc_ecma_transforms_base/tests/ts-resolver/ts_import_type_qualifier/input.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { MyClass } from "./MyClass.ts"; | ||
const test = new MyClass(); | ||
|
||
// MyClass identifier here should be different | ||
// than the one above. | ||
export type MyType = import("./deps.ts").MyClass; | ||
export type MyType2 = import("./deps.ts").MyClass<MyClass>; |
4 changes: 4 additions & 0 deletions
4
crates/swc_ecma_transforms_base/tests/ts-resolver/ts_import_type_qualifier/output.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import { MyClass__2 } from "./MyClass.ts"; | ||
const test__2 = new MyClass__2(); | ||
export type MyType__2 = import("./deps.ts").MyClass__0; | ||
export type MyType2__2 = import("./deps.ts").MyClass__0<MyClass__2>; |