-
Notifications
You must be signed in to change notification settings - Fork 347
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
Cannot add typescript definite assignment assertions to class properties #1012
Comments
It looks like recast doesn't know about that property: Line 1452 in 4b1fc16
Should be pretty easy to fix. Want to submit a PR? |
@eventualbuddha Sure, #1013 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Recast version:
0.20.5
Node version:
14.18.2
Mac OS X version:
12.0.1
Repro: https://github.com/lokshunhung/recast-definite-repro
AST explorer
recast
withrecast/parser/typescript
can remove definite assignment assertions for class properties by settingClassProperty.definite = false
(originallytrue
)but cannot add definite assignment assertions for class properties by setting
ClassProperty.definite = true
(originallyundefined
)The text was updated successfully, but these errors were encountered: