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
// @flow/*::export opaque type Foo = string;*/exportconstmakeFoo=(): Foo=>'new foo';
UseFoo.js
// @flowimport{typeFoo}from'./Foo';// Foo not found in './Foo' (import/named)
A weird workaround is to remove makeFoo from Foo.js and that will fix the linter rule. Don't know why that is. It's also not a good workaround since that makes the opaque type useless.