]> source.dussan.org Git - svg.js.git/commitdiff
add types for styles 1201/head
authorJosé C. Paiva <josepaiva94@gmail.com>
Mon, 3 May 2021 06:49:47 +0000 (07:49 +0100)
committerJosé C. Paiva <josepaiva94@gmail.com>
Mon, 3 May 2021 06:49:47 +0000 (07:49 +0100)
svg.js.d.ts

index 7b8956bb5986826b9fba273b63fb7977dc655a62..c3c39c713f71e82bc835a45b51986aba0354189e 100644 (file)
@@ -1667,7 +1667,9 @@ declare module "@svgdotjs/svg.js" {
     class Style extends Element {\r
         constructor(node: SVGElement, attr?: StylingAttr);\r
         addText(text: string): this;\r
-        font(name: string, src: string, params?: any): this;\r
+        font(a: object): this\r
+        font(a: string, v: string | number): this\r
+        font(a: string): string\r
         rule(selector: string, obj: any): this;\r
     }\r
 \r