diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2023-09-03 11:29:45 +0200 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2023-09-03 11:29:45 +0200 |
commit | 742394edf6777292d1db55baa6cfb33f686e0f21 (patch) | |
tree | b03e78f01b4a28429ba1126e453129022a1758dd | |
parent | 06ac034aee7f00f99aec4b55f4a2386371cb5794 (diff) | |
download | svg.js-742394edf6777292d1db55baa6cfb33f686e0f21.tar.gz svg.js-742394edf6777292d1db55baa6cfb33f686e0f21.zip |
make duration optional in types
-rw-r--r-- | svg.js.d.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svg.js.d.ts b/svg.js.d.ts index 57a665c..520ae98 100644 --- a/svg.js.d.ts +++ b/svg.js.d.ts @@ -11,7 +11,7 @@ declare type CSSStyleName = Exclude< > // create our own style declaration that includes css vars -export interface CSSStyleDeclarationWithVars extends CSSStyleDeclaration { +interface CSSStyleDeclarationWithVars extends CSSStyleDeclaration { [key: `--${string}`]: string } @@ -969,7 +969,7 @@ declare module '@svgdotjs/svg.js' { element(el: Element): this timeline(): Timeline timeline(timeline: Timeline): this - animate(duration: TimeLike, delay?: number, when?: string): this + animate(duration?: TimeLike, delay?: number, when?: string): this schedule(delay: number, when?: string): this schedule(timeline: Timeline, delay?: number, when?: string): this unschedule(): this |