-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Open
Labels
area:union typeslang:flowIssues affecting Flow-specific constructs (not general JS issues)Issues affecting Flow-specific constructs (not general JS issues)lang:typescriptIssues affecting TypeScript-specific constructs (not general JS issues)Issues affecting TypeScript-specific constructs (not general JS issues)
Description
Prettier 1.11.1
Playground link
--parser typescript
--tab-width 4
--use-tabs
Input:
class Aaa {
private normalizeServerError(rawError:
string |
{a:string|number|{a:string}|Rwersdfsdfvxcvsdfdewerwerw} |
ng.IHttpPromiseCallbackArg<
| string
| { error: string | ErrorInformation }
| { Message: string; ExceptionType: string }
>
) {
console.log(rawError);
}
}
Output:
class Aaa {
private normalizeServerError(
rawError:
| string
| {
a:
| string
| number
| { a: string }
| Rwersdfsdfvxcvsdfdewerwerw;
}
| ng.IHttpPromiseCallbackArg<
| string
| { error: string | ErrorInformation }
| { Message: string; ExceptionType: string }
>
) {
console.log(rawError);
}
}
Expected behavior:
class Aaa {
private normalizeServerError(
rawError:
| string
| {
a:
| string
| number
| { a: string }
| Rwersdfsdfvxcvsdfdewerwerw;
}
| ng.IHttpPromiseCallbackArg<
| string
| { error: string | ErrorInformation }
| { Message: string; ExceptionType: string }
>
) {
console.log(rawError);
}
}
Metadata
Metadata
Assignees
Labels
area:union typeslang:flowIssues affecting Flow-specific constructs (not general JS issues)Issues affecting Flow-specific constructs (not general JS issues)lang:typescriptIssues affecting TypeScript-specific constructs (not general JS issues)Issues affecting TypeScript-specific constructs (not general JS issues)