diff options
author | flynn.park <niceilm@naver.com> | 2018-02-22 18:45:23 +0900 |
---|---|---|
committer | flynn.park <niceilm@naver.com> | 2018-02-22 18:45:23 +0900 |
commit | 8d420183382f52cd34180d8755c1096070ccb9a9 (patch) | |
tree | 3658d06ccf27db002c9a3eaa276c833ff4eb0e48 | |
parent | c1ce0c9d63e87423f3a6d7eca381546ec8a89104 (diff) | |
download | svg.js-8d420183382f52cd34180d8755c1096070ccb9a9.tar.gz svg.js-8d420183382f52cd34180d8755c1096070ccb9a9.zip |
Fix typings for missing element.js method
parent, doc
-rw-r--r-- | svg.js.d.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svg.js.d.ts b/svg.js.d.ts index f3bfd49..b7b4358 100644 --- a/svg.js.d.ts +++ b/svg.js.d.ts @@ -272,8 +272,8 @@ declare namespace svgjs { toggleClass(name: string): this;
reference(type: string): Element;
-
- parent(type?: ParentTypeAlias): Parent;
+ // Add HTMLElement for Doc inheritance
+ parent(type?: ParentTypeAlias): Parent | HTMLElement;
doc(): Parent;
parents(): Parent[];
|