Skip to content

Instantly share code, notes, and snippets.

@guillaumebort
Created October 1, 2012 16:43
Show Gist options
  • Select an option

  • Save guillaumebort/3812927 to your computer and use it in GitHub Desktop.

Select an option

Save guillaumebort/3812927 to your computer and use it in GitHub Desktop.
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)
@relrod
Copy link

relrod commented Oct 1, 2012

What language is this? :)

@mushtaq
Copy link

mushtaq commented Oct 3, 2012

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