Created
October 1, 2012 16:43
-
-
Save guillaumebort/3812927 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
interface Person { | |
name: string; | |
} | |
var f = function(p: Person): number { | |
return p.name.length | |
} | |
var a = 'COCO' | |
var b = f({ | |
name: 'Guillaume' | |
}) | |
console.log(b) |
Typescript coming to Play? That will be very very cool!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What language is this? :)