From: Ulrich-Matthias Schäfer Date: Mon, 1 Jun 2020 08:03:01 +0000 (+1000) Subject: Fix constructor typings for ForeignElement X-Git-Tag: 3.1.0~19^2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=35ad521a7c1af0ad152d0c221fa3b54426d0e3a3;p=svg.js.git Fix constructor typings for ForeignElement --- diff --git a/svg.js.d.ts b/svg.js.d.ts index d96d237..e8342d1 100644 --- a/svg.js.d.ts +++ b/svg.js.d.ts @@ -1391,7 +1391,8 @@ declare module "@svgdotjs/svg.js" { // ForeignObject.js class ForeignObject extends Element { - constructor(node: HTMLElement, attrs?: any) + constructor(node?: SVGForeignObjectElement, attrs?: object) + constructor(attrs?: object) add(element: Dom, attrs?: any) : ForeignObject }