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 @lukeggchapman! 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.
@lukeggchapman FWIW moving the function interface declaration into a separate file.d.ts file seemed to make everything happy:
– Webpack/Babel successfully compiles
– tsc type check works with that interface
– VSCode sees/follows it and has no errors/warnings
hope that helps!
bug report
Input Code
This is only an issue when using both the react and typescript presets.
Repl Link
Babel/Babylon Configuration (.babelrc, package.json, cli command)
Expected Behavior
It should not throw and error.
Current Behavior
It throws:
Possible Solution
Similar issue with generic methods: #6665
Similar fix for generic methods: #7225
Duplicate but closed Issue: #7158
Context
Your Environment
The text was updated successfully, but these errors were encountered: