winjs/winjs — pull request #64 by PavelPZ (2014-04-07 14:07:46+00:00)
Title: winjs.d.ts including typed event arguments

> interface CustomEventEx extends CustomEvent {
detail: T;
}
interface LaunchActivatedEvent extends CustomEventEx {
setPromise(promise: Windows.Foundation.IPromise);
type: string;
}

Could be better in this code:
>WinJS.Application.addEventListener("activated", (ev: LaunchActivatedEvent ) => {…});