File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -1885,7 +1885,7 @@ namespace ts.Completions {
1885
1885
break loop;
1886
1886
}
1887
1887
}
1888
- if ( ! isCallLikeExpression ( node ) && ! isJsxOpeningLikeElement ( node ) ) {
1888
+ if ( ! isCallLikeExpression ( node ) ) {
1889
1889
return ;
1890
1890
}
1891
1891
return checker . getResolvedSignature ( node ) ;
@@ -1898,6 +1898,12 @@ namespace ts.Completions {
1898
1898
if ( type . flags & TypeFlags . IndexedAccess ) {
1899
1899
return typeIsTypeParameterFromSignature ( ( type as IndexedAccessType ) . indexType , signature ) ;
1900
1900
}
1901
+ if ( getObjectFlags ( type ) & ObjectFlags . Mapped ) {
1902
+ const { constraintType } = ( type as MappedType ) ;
1903
+ if ( constraintType && constraintType . flags & TypeFlags . Index ) {
1904
+ return isIndexedAccessTypeWithTypeParameterIndex ( ( constraintType as IndexType ) . type , signature ) ;
1905
+ }
1906
+ }
1901
1907
return false ;
1902
1908
}
1903
1909
You can’t perform that action at this time.
0 commit comments