Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Update type-only import semantics to allow type queries#36092

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
andrewbranch merged 27 commits intomicrosoft:masterfromandrewbranch:type-only-2
Jan 23, 2020
Merged
Changes from1 commit
Commits
Show all changes
27 commits
Select commitHold shift + click to select a range
b40284c
Change type-only semantics to allow type queries
andrewbranchJan 8, 2020
2ae9edc
Don’t error using type-only import in ambient context
andrewbranchJan 8, 2020
db93eb2
Fix default import
andrewbranchJan 8, 2020
a2548c8
Fix namespace import
andrewbranchJan 8, 2020
8d3f167
Update more baselines
andrewbranchJan 8, 2020
b56ad7d
Prevent circular resolution
andrewbranchJan 8, 2020
0547a3d
Track const enum expression usage
andrewbranchJan 9, 2020
124dcd6
Update baselines
andrewbranchJan 9, 2020
2dd3690
Perf tuning 1
andrewbranchJan 10, 2020
eefa335
Test commit for perf impact
andrewbranchJan 10, 2020
9a24cba
Weave type-only alias declaration finding into alias resolution
andrewbranchJan 13, 2020
875349d
Fix namespace import of type-only exported symbols
andrewbranchJan 14, 2020
171e314
type-only exports do not contribute to the module object type
andrewbranchJan 14, 2020
910dd84
Update APIs
andrewbranchJan 14, 2020
2a7c472
Fix enum casing, remove type-only conversion suggestion
andrewbranchJan 14, 2020
11ba11a
Short circuit type-only checks in resolveEntityName faster
andrewbranchJan 14, 2020
0c28994
Fix casing in API
andrewbranchJan 14, 2020
40a2c3c
Remove unused parameter
andrewbranchJan 14, 2020
1cbfb81
Merge branch 'master' into type-only-2
andrewbranchJan 14, 2020
124d746
Fix error on qualified names in type queries
andrewbranchJan 14, 2020
bbbcbd5
Merge branch 'master' into type-only-2
andrewbranchJan 15, 2020
1044c5c
Allow type-only imports in computed property names
andrewbranchJan 15, 2020
a5ca492
Fix computed property names of types and abstract members
andrewbranchJan 16, 2020
8571a8a
Remove unused util
andrewbranchJan 16, 2020
8b4c235
Commit missing baselines
andrewbranchJan 16, 2020
be5f50f
Merge branch master into type-only-2
andrewbranchJan 21, 2020
19b3206
Rename “check” functions so as not to overload the word “check”
andrewbranchJan 23, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
Fix namespace import
  • Loading branch information
@andrewbranch
andrewbranch committedJan 8, 2020
commita2548c862744c763b0fec52d9061b7e298bbe034
2 changes: 2 additions & 0 deletionssrc/compiler/utilitiesPublic.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -1729,6 +1729,8 @@ namespace ts {
case SyntaxKind.ImportSpecifier:
case SyntaxKind.ExportSpecifier:
return (node as ImportSpecifier | ExportSpecifier).parent.parent.isTypeOnly;
case SyntaxKind.NamespaceImport:
return (node as NamespaceImport).parent.isTypeOnly;
case SyntaxKind.ImportClause:
return (node as ImportClause).isTypeOnly;
default:
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp