##// END OF EJS Templates
Added 'Attrs', 'Events' type parameters to DjxWidgetBase, typed 'on' and 'emit' methods
Added 'Attrs', 'Events' type parameters to DjxWidgetBase, typed 'on' and 'emit' methods

File last commit:

r2:8ec37bf1b4d1 default
r30:a46488b209e8 v1.0.0-rc14 default
Show More
_Contained.d.ts
33 lines | 930 B | video/mp2t | TypeScriptLexer
cin
created typings for basic part of dojo and dijit further work is required to...
r2 import { DeclareConstructor } from "dojo/_base/declare";
import _WidgetBase = require("./_WidgetBase");
interface _Contained {
/**
* Returns the previous child of the parent or null if this is the
* first child of the parent.
*/
getPreviousSibling<T extends _WidgetBase>(): T;
/**
* Returns the next child of the parent or null if this is the last
* child of the parent.
*/
getNextSibling<T extends _WidgetBase>(): T;
/**
* Returns the index of this widget within its container parent.
* It returns -1 if the parent does not exist or if the parent is
* not a dijit/_Container.
*/
getIndexInParent(): number;
}
declare module "dojo/_base/kernel" {
interface Dijit {
_Contained: _ContainedConstructor;
}
}
type _ContainedConstructor = DeclareConstructor<_Contained>;
declare const _Contained: _ContainedConstructor;
export = _Contained;