From: José C. Paiva Date: Sun, 14 Jun 2020 16:16:16 +0000 (+0100) Subject: Remove extends ElementAlias from List items X-Git-Tag: 3.1.0~16^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F1129%2Fhead;p=svg.js.git Remove extends ElementAlias from List items --- 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 = - (el: T, index: number, list: List) => any; + type ListEachCallback = (el: T, index: number, list: List) => any; // List.js - class List extends BuiltInArray { + class List extends BuiltInArray { each(fn: ListEachCallback): List; each(name: string, ...args: any[]): List; toArray(): T[];