summaryrefslogtreecommitdiffstats
path: root/svg.js.d.ts
diff options
context:
space:
mode:
authorJosé C. Paiva <josepaiva94@gmail.com>2021-05-03 07:49:47 +0100
committerJosé C. Paiva <josepaiva94@gmail.com>2021-05-03 07:49:47 +0100
commitdbcca6f8134d544091f05bacd890cf343c5e6767 (patch)
tree12906c371baffe65c6a8c69c557d8056ce97198f /svg.js.d.ts
parent399671e1d6d7250e42f13ca4bae221f1d9583dcc (diff)
downloadsvg.js-dbcca6f8134d544091f05bacd890cf343c5e6767.tar.gz
svg.js-dbcca6f8134d544091f05bacd890cf343c5e6767.zip
add types for styles
Diffstat (limited to 'svg.js.d.ts')
-rw-r--r--svg.js.d.ts4
1 files changed, 3 insertions, 1 deletions
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;
}