Skip to content

Commit 1ca3ad7

Browse files
committed
chore: update tuple grammer to show named types logically
1 parent c8429ce commit 1ca3ad7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ export class Parser extends DiagnosticEmitter {
578578
return null;
579579
}
580580

581-
// '[' Type (',' Type)* ']'
581+
// '[' ((Identifier ':')? Type (',' (Identifier ':')? Type)*)? ']'
582582
} else if (token == Token.OpenBracket && this.options && this.options!.hasFeature(Feature.MultiValue)) {
583583
let elements: TypeNode[] = [];
584584
let elementNames: (IdentifierExpression | null)[] = [];

0 commit comments

Comments
 (0)