diff options
author | José C. Paiva <josepaiva94@gmail.com> | 2021-05-03 07:49:47 +0100 |
---|---|---|
committer | José C. Paiva <josepaiva94@gmail.com> | 2021-05-03 07:49:47 +0100 |
commit | dbcca6f8134d544091f05bacd890cf343c5e6767 (patch) | |
tree | 12906c371baffe65c6a8c69c557d8056ce97198f /svg.js.d.ts | |
parent | 399671e1d6d7250e42f13ca4bae221f1d9583dcc (diff) | |
download | svg.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.ts | 4 |
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;
}
|