to(a: any): Morphable;\r
}\r
\r
- type ListEachCallback<T> = (el: T, index: number, list: T[]) => any\r
+ type ListEachCallback<T> = (el: T, index: number, list: List<T>) => any\r
\r
// List.js\r
class List<T> extends BuiltInArray<T> implements ElementAlias {\r
- each(fn: ListEachCallback<T>): any[]\r
- each(name: string, ...args: any[]): any[]\r
+ each(fn: ListEachCallback<T>): List<any>\r
+ each(name: string, ...args: any[]): List<any>\r
toArray(): T[]\r
}\r
\r
// ForeignObject.js\r
class ForeignObject extends Element {\r
constructor(node: HTMLElement, attrs?: any)\r
- add(element: Dom) : ForeignObject\r
+ add(element: Dom, attrs?: any) : ForeignObject\r
}\r
\r
// image.js\r