Skip to content

Formatter inserts extra space after ? in optional signatures #2080

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

Closed
JsonFreeman opened this issue Feb 19, 2015 · 0 comments · Fixed by #2110
Closed

Formatter inserts extra space after ? in optional signatures #2080

JsonFreeman opened this issue Feb 19, 2015 · 0 comments · Fixed by #2110
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue

Comments

@JsonFreeman
Copy link
Contributor

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.

@JsonFreeman JsonFreeman added the Bug A bug in TypeScript label Feb 19, 2015
@DanielRosenwasser DanielRosenwasser self-assigned this Feb 20, 2015
@DanielRosenwasser DanielRosenwasser added this to the TypeScript 1.5 milestone Feb 20, 2015
@JsonFreeman JsonFreeman added the Fixed A PR has been merged for this issue label Feb 24, 2015
@microsoft microsoft locked and limited conversation to collaborators Jun 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants