##// END OF EJS Templates
Fixed build script, added dgrid, added dstore typings.
Fixed build script, added dgrid, added dstore typings.

File last commit:

r2:1e22cac2aaf4 v1.0.0-rc1 default
r4:c7a87ad80f91 default
Show More
traits.d.ts
25 lines | 638 B | video/mp2t | TypeScriptLexer
cin
Added events map support to _WidgetBase, corrected attributes map support in _WidgetBase
r2 import * as _WidgetBase from "dijit/_WidgetBase";
import * as Stateful from "dojo/Stateful";
export interface IRemovable {
remove(): void;
}
type StatefulAttrs<T> = T extends Stateful<infer A> ? A : never;
interface WatchFn {
<T extends Stateful, K extends keyof StatefulAttrs<T>>(
target: T,
prop: K,
render: (model: StatefulAttrs<T>[K]) => any,
own?: (obj: IRemovable) => void
);
<W extends _WidgetBase, K extends keyof W>(
target: W,
prop: K,
render: (model: W[K]) => any,
own?: (obj: IRemovable) => void
);
}
export declare const watch: WatchFn;