aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--svg.js.d.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/svg.js.d.ts b/svg.js.d.ts
index 30167e6..5b20b92 100644
--- a/svg.js.d.ts
+++ b/svg.js.d.ts
@@ -807,7 +807,7 @@ declare module "@svgdotjs/svg.js" {
element(el: Element): this
timeline(): Timeline
timeline(timeline: Timeline): this
- animate(duration: number, 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
@@ -1169,8 +1169,7 @@ declare module "@svgdotjs/svg.js" {
addClass(name: string): this;
after(element: Element): Element;
- animate(duration?: number, ease?: string, delay?: number): Runner;
- animate(info: { ease?: string; duration?: number; delay?: number }): Runner;
+ animate(duration?: TimeLike, delay?: number, when?: string): Runner;
delay(by: number, when?: string): Runner
attr(): any;
attr(name: string, value: any, namespace?: string): this;