From dbcca6f8134d544091f05bacd890cf343c5e6767 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20C=2E=20Paiva?= Date: Mon, 3 May 2021 07:49:47 +0100 Subject: [PATCH] add types for styles --- svg.js.d.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/svg.js.d.ts b/svg.js.d.ts index 7b8956b..c3c39c7 100644 --- a/svg.js.d.ts +++ b/svg.js.d.ts @@ -1667,7 +1667,9 @@ declare module "@svgdotjs/svg.js" { class Style extends Element { constructor(node: SVGElement, attr?: StylingAttr); addText(text: string): this; - font(name: string, src: string, params?: any): this; + font(a: object): this + font(a: string, v: string | number): this + font(a: string): string rule(selector: string, obj: any): this; } -- 2.39.5