aboutsummaryrefslogtreecommitdiffstats
path: root/svg.js.d.ts
diff options
context:
space:
mode:
authorJosé C. Paiva <josepaiva94@gmail.com>2020-06-14 17:16:16 +0100
committerJosé C. Paiva <josepaiva94@gmail.com>2020-06-14 17:16:16 +0100
commit7adda38c70690be1bfee71b8e8c9f13d72455141 (patch)
tree8ef5e829b3ffeea20e29b6238a2a16825fa3915d /svg.js.d.ts
parent201a0bc249864be25417b79434782bc582d76bb2 (diff)
downloadsvg.js-7adda38c70690be1bfee71b8e8c9f13d72455141.tar.gz
svg.js-7adda38c70690be1bfee71b8e8c9f13d72455141.zip
Remove extends ElementAlias from List items
Diffstat (limited to 'svg.js.d.ts')
-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[];