We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Prettier 2.6.2 Playground link
--parser babel
Input:
class Base<T> {} interface SomeExtensionClass<T> { create<A extends typeof Base<T>>(this: A) : InstanceType<A> }
Output:
SyntaxError: Unexpected token, expected "," (4:12) 2 | 3 | interface SomeExtensionClass<T> { > 4 | create<A extends typeof Base<T>>(this: A) : InstanceType<A> | ^ 5 | }
Expected behavior: This is valid typescript should be able to format
The text was updated successfully, but these errors were encountered:
Instantiation expressions are parsed correctly in the next version, not published yet
Sorry, something went wrong.
Duplicates to #12640
No branches or pull requests
Prettier 2.6.2
Playground link
Input:
Output:
Expected behavior:
This is valid typescript should be able to format
The text was updated successfully, but these errors were encountered: