mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Test for isNewIdentifierLocation, and make true for type with index signature (#22910)
This commit is contained in:
@@ -1031,6 +1031,8 @@ namespace ts.Completions {
|
||||
}
|
||||
|
||||
function addTypeProperties(type: Type): void {
|
||||
isNewIdentifierLocation = !!type.getStringIndexType() || !!type.getNumberIndexType();
|
||||
|
||||
if (isSourceFileJavaScript(sourceFile)) {
|
||||
// In javascript files, for union types, we don't just get the members that
|
||||
// the individual types have in common, we also include all the members that
|
||||
|
||||
Reference in New Issue
Block a user