Skip to content

Formatting conditional type in property missing indent #24319

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
ghost opened this issue May 22, 2018 · 0 comments
Closed

Formatting conditional type in property missing indent #24319

ghost opened this issue May 22, 2018 · 0 comments
Labels
Bug A bug in TypeScript Domain: Formatter The issue relates to the built-in formatter Help Wanted You can do this
Milestone

Comments

@ghost
Copy link

ghost commented May 22, 2018

TypeScript Version: 2.9.0-dev.20180519

Code

interface I {
    x: number extends number
        ? string
        : boolean;
};

Expected behavior:

Formatting changes nothing.

Actual behavior:

interface I {
    x: number extends number
    ? string
    : boolean;
};

Related to #21716, also discovered microsoft/TypeScript-TmLanguage#613

@ghost ghost added Bug A bug in TypeScript Domain: Formatter The issue relates to the built-in formatter labels May 22, 2018
@mhegazy mhegazy added the Help Wanted You can do this label Jul 13, 2018
@mhegazy mhegazy added this to the Community milestone Jul 13, 2018
@RyanCavanaugh RyanCavanaugh modified the milestones: Community, Backlog Mar 7, 2019
@RyanCavanaugh RyanCavanaugh closed this as not planned Won't fix, can't repro, duplicate, stale Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript Domain: Formatter The issue relates to the built-in formatter Help Wanted You can do this
Projects
None yet
Development

No branches or pull requests

2 participants