You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey @aczekajski! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly.
If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack community that typically always has someone willing to help. You can sign-up here for an invite.
馃捇
How are you using Babel?
Programmatic API (
babel.transform
,babel.parse
)Input code
Configuration file name
No response
Configuration
options passed to @babel/parser:
Current and expected behavior
When just parsed using @babel/parser and generated back using @babel/generator, with nothing else being done to AST, the mentioned code becomes:
which is an ivalid typescript, raises "Type expected" error because indeed, there is no type after
:
.Expected behavior:
It should be generated back into
Environment
Possible solution
If the
MappedType
node has itstype
field set toundefined
, there should be no:
printed out after the[key in Foo]
.Additional context
No response
The text was updated successfully, but these errors were encountered: