Created
March 17, 2015 19:40
-
-
Save seanhess/bf9c66f3be8bd689148a to your computer and use it in GitHub Desktop.
Optional Types, composed types
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
type Searchy = { | |
index: string; | |
// type?: string; | |
} | |
type ServerSearch = { | |
type: string; | |
search: Searchy; | |
} | |
var woot:Searchy = {index:"string"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment