Skip to content

Instantly share code, notes, and snippets.

@glasserc
Created January 18, 2019 18:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save glasserc/757049f995199a58550ad60f13da0b92 to your computer and use it in GitHub Desktop.
Save glasserc/757049f995199a58550ad60f13da0b92 to your computer and use it in GitHub Desktop.
Flow types at module boundary
/* @flow */
export type ActionType = "hello";
export function action(): ActionType {
return "hello";
}
/* @flow */
import type { ActionType } from "./action";
import * as ActionStuff from "./action";
function callAction(actionModule: {[string]: () => ActionType}) {
}
callAction(ActionStuff);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment