mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-17 21:06:50 -05:00
fix(37364): show completions for string literal index on mapped type (#37367)
This commit is contained in:
@@ -223,7 +223,9 @@ namespace ts.Completions.StringCompletions {
|
||||
function stringLiteralCompletionsFromProperties(type: Type | undefined): StringLiteralCompletionsFromProperties | undefined {
|
||||
return type && {
|
||||
kind: StringLiteralCompletionKind.Properties,
|
||||
symbols: type.getApparentProperties().filter(prop => !isPrivateIdentifierPropertyDeclaration(prop.valueDeclaration)),
|
||||
symbols: type.getApparentProperties().filter(prop =>
|
||||
!isPrivateIdentifierPropertyDeclaration(
|
||||
isTransientSymbol(prop) && prop.syntheticOrigin ? prop.syntheticOrigin.valueDeclaration : prop.valueDeclaration)),
|
||||
hasIndexSignature: hasIndexSignature(type)
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user