aboutsummaryrefslogtreecommitdiffstats
path: root/svg.js.d.ts
diff options
context:
space:
mode:
authorAndrew Rodgers <acedrew@gmail.com>2020-05-19 23:05:52 -0400
committerGitHub <noreply@github.com>2020-05-19 23:05:52 -0400
commit850172f0da05053479d150c91165c33d84b9c43d (patch)
tree2179412b81632dc2799049e9df524653fd83d7ba /svg.js.d.ts
parent0890c4d55fd39356347a5e7a2bb37c9436d2555c (diff)
downloadsvg.js-850172f0da05053479d150c91165c33d84b9c43d.tar.gz
svg.js-850172f0da05053479d150c91165c33d84b9c43d.zip
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.
Diffstat (limited to 'svg.js.d.ts')
-rw-r--r--svg.js.d.ts2
1 files changed, 1 insertions, 1 deletions
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