Skip to content

Instantly share code, notes, and snippets.

@kfarst
Created May 18, 2018 23:37
Show Gist options
  • Save kfarst/c121ed03bc31aa45efc2b275eff87d07 to your computer and use it in GitHub Desktop.
Save kfarst/c121ed03bc31aa45efc2b275eff87d07 to your computer and use it in GitHub Desktop.
// @flow
type MyObject = {
foo: number,
bar: boolean,
baz: string,
};
var val: MyObject = { /* ... */ };
function method(val: MyObject) { /* ... */ }
class Foo { constructor(val: MyObject) { /* ... */ } }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment