to(a: any): Morphable;\r
}\r
\r
- type ListEachCallback<T> = (el: T, index: number, list: T[]) => T\r
+ type ListEachCallback<T> = (el: T, index: number, list: T[]) => any\r
\r
// List.js\r
- class List<T> extends BuiltInArray<T> {\r
- // I have no clue how to deal with this\r
- // [key: string]: (...arg0: any[]) => List<T>\r
- // [key: string]: () => List<any>\r
- each(fn: ListEachCallback<T>): T[]\r
- each(...args: any[]): T[]\r
+ class List<T> extends BuiltInArray<T> implements ElementAlias {\r
+ each(fn: ListEachCallback<T>): any[]\r
+ each(name: string, ...args: any[]): any[]\r
toArray(): T[]\r
}\r
\r