forked from dudykr/stc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Import local type from module and namespace (dudykr#1099)
**Description:** ```ts declare module "foo2" { namespace Bar { interface I { a: string; b: number; } } namespace Baz { interface J { a: number; b: string; } } class Bar { item: Bar.I; constructor(input: Baz.J); } } let y: import("foo2").Bar.I = { a: "", b: 0 }; ```
- Loading branch information
1 parent
9e4c9b3
commit b81ae80
Showing
14 changed files
with
84 additions
and
95 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
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
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
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
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
12 changes: 0 additions & 12 deletions
12
crates/stc_ts_type_checker/tests/conformance/types/import/importTypeAmbient.error-diff.json
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
crates/stc_ts_type_checker/tests/conformance/types/import/importTypeAmbient.stats.rust-debug
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Stats { | ||
required_error: 0, | ||
matched_error: 0, | ||
extra_error: 1, | ||
extra_error: 0, | ||
panic: 0, | ||
} |
12 changes: 0 additions & 12 deletions
12
...stc_ts_type_checker/tests/conformance/types/import/importTypeGenericTypes.error-diff.json
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...tc_ts_type_checker/tests/conformance/types/import/importTypeGenericTypes.stats.rust-debug
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Stats { | ||
required_error: 0, | ||
matched_error: 0, | ||
extra_error: 1, | ||
extra_error: 0, | ||
panic: 0, | ||
} |
12 changes: 0 additions & 12 deletions
12
crates/stc_ts_type_checker/tests/conformance/types/import/importTypeLocal.error-diff.json
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
crates/stc_ts_type_checker/tests/conformance/types/import/importTypeLocal.stats.rust-debug
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Stats { | ||
required_error: 0, | ||
matched_error: 0, | ||
extra_error: 1, | ||
extra_error: 0, | ||
panic: 0, | ||
} |
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
2 changes: 1 addition & 1 deletion
2
...tc_ts_type_checker/tests/conformance/types/import/importTypeLocalMissing.stats.rust-debug
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Stats { | ||
required_error: 1, | ||
matched_error: 3, | ||
extra_error: 1, | ||
extra_error: 0, | ||
panic: 0, | ||
} |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Stats { | ||
required_error: 2861, | ||
matched_error: 7174, | ||
extra_error: 1090, | ||
extra_error: 1086, | ||
panic: 3, | ||
} |