]> source.dussan.org Git - svg.js.git/commitdiff
Fix constructor typings for ForeignElement
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>
Mon, 1 Jun 2020 08:03:01 +0000 (18:03 +1000)
committerGitHub <noreply@github.com>
Mon, 1 Jun 2020 08:03:01 +0000 (18:03 +1000)
svg.js.d.ts

index d96d237fc570735e3fba83c636c70e51131452ee..e8342d1b5fc19d6458cc7efec30620e4355a821a 100644 (file)
@@ -1391,7 +1391,8 @@ declare module "@svgdotjs/svg.js" {
 \r
     // ForeignObject.js\r
     class ForeignObject extends Element {\r
-        constructor(node: HTMLElement, attrs?: any)\r
+        constructor(node?: SVGForeignObjectElement, attrs?: object)\r
+        constructor(attrs?: object)\r
         add(element: Dom, attrs?: any) : ForeignObject\r
     }\r
 \r