Skip to content
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

Flow complains about missing export called __RewireAPI__ #205

Open
FezVrasta opened this issue Oct 23, 2017 · 2 comments
Open

Flow complains about missing export called __RewireAPI__ #205

FezVrasta opened this issue Oct 23, 2017 · 2 comments

Comments

@FezVrasta
Copy link

Whenever I import or use RewireAPI or any of the methods exposed by this plugin, Flow will complain about them because they aren't actually defined/exported by the module I'm using.

Is there any way to suppress these warnings?

@AndrewSouthpaw
Copy link

You can use // $FlowFixMe above the offending line.

@AndrewSouthpaw
Copy link

You can also just add an export on the implementation file. It kinda breaks encapsulation, but... whatever.

export const __RewireAPI__ = {}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants