-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
AST change proposal: Improve TSModuleDeclaration
#6440
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
Comments
Duplicate of #4966 We'll be fixing this in the next major! |
Sorry, didn't find it, must use the wrong keyword. |
That's cos they're exactly the same from the POV of TS. I think maybe The other option is that prettier could inspect the TS node for the specific keyword? |
👍
Maybe already in |
How do you think the idea
|
Or |
Before You File a Proposal Please Confirm You Have Done The Following...
Relevant Package
ast-spec
My proposal is suitable for this project
Description
Currently
Can we change it to
?
Another problem is we parse the following code as the same ast
Prettier can't distinguish them without the original code. Failure detection
Maybe add
TSNamespaceDeclaration
orTSModuleDeclaration.namespace
?Fail
Pass
Additional Info
No response
The text was updated successfully, but these errors were encountered: