diff options
author | José C. Paiva <josepaiva94@gmail.com> | 2020-06-14 17:16:16 +0100 |
---|---|---|
committer | José C. Paiva <josepaiva94@gmail.com> | 2020-06-14 17:16:16 +0100 |
commit | 7adda38c70690be1bfee71b8e8c9f13d72455141 (patch) | |
tree | 8ef5e829b3ffeea20e29b6238a2a16825fa3915d | |
parent | 201a0bc249864be25417b79434782bc582d76bb2 (diff) | |
download | svg.js-7adda38c70690be1bfee71b8e8c9f13d72455141.tar.gz svg.js-7adda38c70690be1bfee71b8e8c9f13d72455141.zip |
Remove extends ElementAlias from List items
-rw-r--r-- | svg.js.d.ts | 5 |
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[];
|