Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Splitting a default tuple type across multiple lines breaks highlighting #1040

Open
adeniszczyc opened this issue Aug 20, 2024 · 0 comments
Open

Comments

@adeniszczyc
Copy link

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

// Please include a code snippet that demonstrates the issue
export interface Broken {
    a<A extends [number] = [
        number
    ]>(value: number): boolean;

    b(value: number): string;
}

export interface Other {
    constructor(name: string);
}

Broken:
broken_interface

Working:
working_interface

@adeniszczyc 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant