jsx/JSX — pull request #42 by mzp (2012-06-18 12:31:05+00:00)
Title: Add local function declaration

I add a local function declaration.

function someMethod() {
function inc(x : number) : number {
return x + 1;
}

log inc(1); // -> 2
}

Off course, this is a only syntax sugar for var inc = funciton(x:number) : number { ... }.
But this make it easy to port Javascript library to JSX.