From 850172f0da05053479d150c91165c33d84b9c43d Mon Sep 17 00:00:00 2001 From: Andrew Rodgers Date: Tue, 19 May 2020 23:05:52 -0400 Subject: [PATCH] Add optional string type to Runner.ease The ease method on the runner takes the same constructor strings as the Ease class, so you can do things like element.animate(1000).ease('-').rotate(360).loop() Currently typescript throws an error saying that ease only accepts a Function as an argument. --- svg.js.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svg.js.d.ts b/svg.js.d.ts index 2e227a4..0dddfdc 100644 --- a/svg.js.d.ts +++ b/svg.js.d.ts @@ -851,7 +851,7 @@ declare module "@svgdotjs/svg.js" { reset(): this finish(): this reverse(r?: boolean): this - ease(fn: Function): this + ease(fn: Function | string): this active(): boolean active(a: boolean): this addTransform(m: Matrix): this -- 2.39.5