Flow supports directly importing/exporting types, however, the correct scope isn't being added to the type keyword in imports/exports and directly exported types are missing Flow scopes altogether.
/**
* @flow
*/
// `type` is missing "storage.type.js" scope
import {type UserID} from 'AppTypes';
type User = {|
id: UserID,
name: string,
|};
// `type` is missing "storage.type.js" scope
export type {User};
// Missing all Flow-related scopes
export type Friend = {|
id: UserID,
name: string,
|};
Flow supports directly importing/exporting types, however, the correct scope isn't being added to the
type
keyword in imports/exports and directly exported types are missing Flow scopes altogether.Result: