Skip to content

Formatter inserts extra space after ? in optional signatures #2080

Closed
@JsonFreeman

Description

@JsonFreeman

Type the following:

interface I {
    x?(): any;
    y?<T>(): any;
}

Upon formatting, notice the extra space after the ?. It should not be there. Ditto for generic signatures.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions