##// END OF EJS Templates
updated _WidgetBase typings, added support for the generic type parameter to the constructor
updated _WidgetBase typings, added support for the generic type parameter to the constructor

File last commit:

r0:ab570232df7d default
r1:d55cc09feba1 default
Show More
NodeList-data.d.ts
32 lines | 827 B | video/mp2t | TypeScriptLexer
cin
Initial commit, project structure.
r0 /// <reference path="dojo.d.ts" />
declare namespace dojo {
interface NodeList<T extends Node> {
/**
* An alias to the private dataCache for NodeList-data. NEVER USE THIS!
* This private is only exposed for the benefit of unit testing, and is
* removed during the build process.
*/
_nodeDataCache: { [id: string]: { [key: string]: any } };
/**
* super expensive: GC all data in the data for nodes that no longer exist in the dom.
*/
_gcNodeData(): void;
/**
* stash or get some arbitrary data on/from these nodes.
*/
data(): any[];
data(key: string): any[];
data(key: Object): this;
data(key: string, value: any): this;
}
}
declare module 'dojo/NodeList-data' {
type NodeList<T extends Node> = dojo.NodeList<T>;
const NodeList: dojo.NodeListConstructor;
export = NodeList;
}