Created
August 8, 2016 18:44
-
-
Save saml/a25c56a4d50691371175a575b8b1871d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @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