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
Add parentheses for TSTypeOperator #14140
Comments
This comment was marked as off-topic.
This comment was marked as off-topic.
@spennine Your issue not related to this one, you must have different version of Prettier installed. |
ty @fisker , we are seeing this using 2.8.2; 2.8.1 didn't exhibit this issue. |
Your editor is running old version. |
I never saw code like this ( |
I ran it and got the following. (a as typeof node.children)! Output: (a as typeof node.children)! ; |
This was proposed base on my comment #14042 (comment) I guess. |
Prettier 2.8.2
Playground link
Input:
Output:
Expected behavior:
The text was updated successfully, but these errors were encountered: