I am in the process of creating TypeScript definitions for RiotJS. This lib uses nested functions like so:
riot.route( args ); // function
riot.route.parser( args ); // function in function
Here is an extract of what I have so far:
declare module riot
{
export function route( callback : Function ) : void
export function route( to : string ) : void
}
I am not sure how to structure the definition for the "riot.route.parser()" nested function and wondering if anyone has any insight to share on this ?
Thank you