From 8cc714a53bc2e1cf531eb50475285c2a775339aa Mon Sep 17 00:00:00 2001 From: pragdave Date: Sun, 31 May 2020 11:04:10 -0500 Subject: [PATCH] slowly iterating towards List nirvana. FO still pending... --- svg.js.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/svg.js.d.ts b/svg.js.d.ts index 8cb3252..99ec3b1 100644 --- a/svg.js.d.ts +++ b/svg.js.d.ts @@ -548,12 +548,12 @@ declare module "@svgdotjs/svg.js" { to(a: any): Morphable; } - type ListEachCallback = (el: T, index: number, list: T[]) => any + type ListEachCallback = (el: T, index: number, list: List) => any // List.js class List extends BuiltInArray implements ElementAlias { - each(fn: ListEachCallback): any[] - each(name: string, ...args: any[]): any[] + each(fn: ListEachCallback): List + each(name: string, ...args: any[]): List toArray(): T[] } @@ -1386,7 +1386,7 @@ declare module "@svgdotjs/svg.js" { // ForeignObject.js class ForeignObject extends Element { constructor(node: HTMLElement, attrs?: any) - add(element: Dom) : ForeignObject + add(element: Dom, attrs?: any) : ForeignObject } // image.js -- 2.39.5