##// END OF EJS Templates
`dojo.store.api` replaced `dojo.promise.Promise<T>` with `PromiseLike<T>` type
`dojo.store.api` replaced `dojo.promise.Promise<T>` with `PromiseLike<T>` type

File last commit:

r10:641c326d4bb4 v1.0.2 default
r12:1e87acba35f3 v1.0.3 default
Show More
EventedTests.ts
16 lines | 349 B | video/mp2t | TypeScriptLexer
cin
added type parameter to Evented<T>, T is the event map...
r10 import * as Evented from "dojo/Evented";
interface DoorEvents {
open: { authorized: boolean }
close: void
}
const door = new Evented<DoorEvents>();
door.on("open", evt => evt.authorized);
door.on<any>("location-change", (x,y,z) => x+y+z);
door.emit("open", { authorized: false });
door.emit("close");
door.emit<any>("location-change");