aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--svg.js.d.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/svg.js.d.ts b/svg.js.d.ts
index 97000e9..1bc0ccf 100644
--- a/svg.js.d.ts
+++ b/svg.js.d.ts
@@ -555,11 +555,10 @@ declare module "@svgdotjs/svg.js" {
to(a: any): Morphable;
}
- type ListEachCallback<T extends ElementAlias> =
- (el: T, index: number, list: List<T>) => any;
+ type ListEachCallback<T> = (el: T, index: number, list: List<T>) => any;
// List.js
- class List<T extends ElementAlias> extends BuiltInArray<T> {
+ class List<T> extends BuiltInArray<T> {
each(fn: ListEachCallback<T>): List<any>;
each(name: string, ...args: any[]): List<any>;
toArray(): T[];