]> source.dussan.org Git - svg.js.git/commitdiff
Changes animate duration argument to TimeLike 1065/head
authorMatthew Radcliffe <mradcliffe@softpixel.com>
Mon, 16 Dec 2019 12:32:47 +0000 (07:32 -0500)
committerMatthew Radcliffe <mradcliffe@softpixel.com>
Mon, 16 Dec 2019 12:32:47 +0000 (07:32 -0500)
svg.js.d.ts

index 60c3a55a9f2c7359c8c860a04f44be612197de73..5b20b922f4a9855c8d748c1948fa716f56e4aa5e 100644 (file)
@@ -807,7 +807,7 @@ declare module "@svgdotjs/svg.js" {
         element(el: Element): this\r
         timeline(): Timeline\r
         timeline(timeline: Timeline): this\r
-        animate(duration: number, delay?: number, when?: string): this\r
+        animate(duration: TimeLike, delay?: number, when?: string): this\r
         schedule(delay: number, when?: string): this\r
         schedule(timeline: Timeline, delay?: number, when?: string): this\r
         unschedule(): this\r
@@ -1169,7 +1169,7 @@ declare module "@svgdotjs/svg.js" {
 \r
         addClass(name: string): this;\r
         after(element: Element): Element;\r
-        animate(duration?: number, delay?: number, when?: string): Runner;\r
+        animate(duration?: TimeLike, delay?: number, when?: string): Runner;\r
         delay(by: number, when?: string): Runner\r
         attr(): any;\r
         attr(name: string, value: any, namespace?: string): this;\r