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)
@mushtaq

mushtaq commented Oct 3, 2012

Copy link
Copy Markdown

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