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
It should strip the a: Function; line. If you compile the code with flow, that line gets stripped out of the output, but if you compile it with TypeScript, it acts as a duplicate declaration which overrides the original, resulting in code where a is undefined.
The text was updated successfully, but these errors were encountered:
zxbodya
transferred this issue from zxbodya/babel-plugin-flow-to-typescript
May 2, 2020
Output:
Output:
It should strip the
a: Function;
line. If you compile the code with flow, that line gets stripped out of the output, but if you compile it with TypeScript, it acts as a duplicate declaration which overrides the original, resulting in code wherea
isundefined
.The text was updated successfully, but these errors were encountered: