From: Matthew Radcliffe Date: Mon, 16 Dec 2019 12:32:47 +0000 (-0500) Subject: Changes animate duration argument to TimeLike X-Git-Tag: 3.1.0~77^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F1065%2Fhead;p=svg.js.git Changes animate duration argument to TimeLike --- diff --git a/svg.js.d.ts b/svg.js.d.ts index 60c3a55..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,7 +1169,7 @@ declare module "@svgdotjs/svg.js" { addClass(name: string): this; after(element: Element): Element; - animate(duration?: number, delay?: number, when?: string): 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;