Closed bdchauvette closed 8 years ago
It's a babel bug unfortunately, and it's very annoying/concerning that it works in the test suite,
Thanks for the gist, I'll add it to https://phabricator.babeljs.io/T6730
That's a shame :/
Thanks for the quick reply, though! :smile:
When I use an imported type, the code uses an
instanceof
check instead of using the imported type checking functionFollowing the example code from #46, I put together a gist that shows the unexpected transform.
If I define the types within the same file, though, everything works great.
I'm probably doing something wrong, because importing and exporting works just fine in the
babel-plugin-typecheck
test suite. :confused: