Skip to content

Instantly share code, notes, and snippets.

@saml
Created August 8, 2016 18:44
Show Gist options
  • Save saml/a25c56a4d50691371175a575b8b1871d to your computer and use it in GitHub Desktop.
Save saml/a25c56a4d50691371175a575b8b1871d to your computer and use it in GitHub Desktop.
// @flow
type Yo = Path | URL;
class Path {
title: string;
path: string;
}
class URL {
title: string;
url: string;
}
//type Path = {title: string, path: string};
//type URL = {title: string, url: number};
function f(arr: Array<Yo>) {
}
f([new Path(), new URL()]);
//f({title:'a', path:'b', url: 1}, {title: 'a', url: 1}]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment