mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-04-17 01:49:41 -05:00
tsserver: get candidates from <K extends keyof Foo> (fix #12536)
This commit is contained in:
@@ -244,6 +244,9 @@ namespace ts.Completions {
|
||||
}
|
||||
|
||||
function addStringLiteralCompletionsFromType(type: Type, result: CompletionEntry[]): void {
|
||||
if (type && type.flags & TypeFlags.TypeParameter) {
|
||||
type = typeChecker.getApparentType(type);
|
||||
}
|
||||
if (!type) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user