]> source.dussan.org Git - svg.js.git/commitdiff
Fix typings for missing element.js method 820/head
authorflynn.park <niceilm@naver.com>
Thu, 22 Feb 2018 09:45:23 +0000 (18:45 +0900)
committerflynn.park <niceilm@naver.com>
Thu, 22 Feb 2018 09:45:23 +0000 (18:45 +0900)
parent, doc

svg.js.d.ts

index f3bfd4902fa6ab6e0a7273eddbc3d99333e8267f..b7b4358c813d2920a0cba2d205e56468a83c99c3 100644 (file)
@@ -272,8 +272,8 @@ declare namespace svgjs {
         toggleClass(name: string): this;\r
 \r
         reference(type: string): Element;\r
-\r
-        parent(type?: ParentTypeAlias): Parent;\r
+        // Add HTMLElement for Doc inheritance\r
+        parent(type?: ParentTypeAlias): Parent | HTMLElement;\r
         doc(): Parent;\r
         parents(): Parent[];\r
 \r