aboutsummaryrefslogtreecommitdiffstats
path: root/svg.js.d.ts
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2020-06-01 18:03:01 +1000
committerGitHub <noreply@github.com>2020-06-01 18:03:01 +1000
commit35ad521a7c1af0ad152d0c221fa3b54426d0e3a3 (patch)
tree59f4271e6fa513a067da7fa765c55985fe2b9e00 /svg.js.d.ts
parentd0e8b57d618b566ad48538dfecab99cb094954b5 (diff)
downloadsvg.js-35ad521a7c1af0ad152d0c221fa3b54426d0e3a3.tar.gz
svg.js-35ad521a7c1af0ad152d0c221fa3b54426d0e3a3.zip
Fix constructor typings for ForeignElement
Diffstat (limited to 'svg.js.d.ts')
-rw-r--r--svg.js.d.ts3
1 files changed, 2 insertions, 1 deletions
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
}