mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-17 11:24:29 -05:00
Address comments on IndexSignature inlay hint PR (#56613)
This commit is contained in:
committed by
GitHub
parent
20c0f40526
commit
5b7344ef52
@@ -753,9 +753,8 @@ export function provideInlayHints(context: InlayHintsContext): InlayHint[] {
|
||||
break;
|
||||
case SyntaxKind.IndexSignature:
|
||||
Debug.assertNode(node, isIndexSignatureDeclaration);
|
||||
Debug.assertEqual(node.parameters.length, 1);
|
||||
parts.push({ text: "[" });
|
||||
visitForDisplayParts(node.parameters[0]);
|
||||
visitDisplayPartList(node.parameters, ", ");
|
||||
parts.push({ text: "]" });
|
||||
if (node.type) {
|
||||
parts.push({ text: ": " });
|
||||
|
||||
Reference in New Issue
Block a user