You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Splitting a tuple across multiple lines, which is used as the default type for a parameter on a method in an interface or class in a declaration file (.d.ts), breaks syntax highlighting below that line.
Code
// Please include a code snippet that demonstrates the issueexportinterfaceBroken{a<Aextends[number]=[number]>(value: number): boolean;b(value: number): string;}exportinterfaceOther{constructor(name: string);}
Broken:
Working:
The text was updated successfully, but these errors were encountered:
adeniszczyc
changed the title
Splitting a default tuple type across multiple lines breaking highlighting
Splitting a default tuple type across multiple lines breaks highlighting
Aug 20, 2024
JavaScript and TypeScript Nightly version: 5.6.0-dev.20240819
Splitting a tuple across multiple lines, which is used as the default type for a parameter on a method in an
interface
or class in a declaration file (.d.ts
), breaks syntax highlighting below that line.Code
Broken:
Working:
The text was updated successfully, but these errors were encountered: