summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2020-05-08 18:28:32 +1000
committerGitHub <noreply@github.com>2020-05-08 18:28:32 +1000
commit36689d5e7272db5ce982ff52b4c8772564b13004 (patch)
treebc2924ca190f3d70b586618413af5e08e52b1697
parentc8cb22863bf8c3ac157f6098be9154908aea9ec2 (diff)
parent66094c88a8c6452cbc0943af282ba9757b5f5421 (diff)
downloadsvg.js-36689d5e7272db5ce982ff52b4c8772564b13004.tar.gz
svg.js-36689d5e7272db5ce982ff52b4c8772564b13004.zip
Merge pull request #1106 from pragdave/some-type-based-tidying
Fix schedule typings in timeline.js
-rw-r--r--svg.js.d.ts10
1 files changed, 9 insertions, 1 deletions
diff --git a/svg.js.d.ts b/svg.js.d.ts
index e397e05..2d28913 100644
--- a/svg.js.d.ts
+++ b/svg.js.d.ts
@@ -772,11 +772,19 @@ declare module "@svgdotjs/svg.js" {
}
// Timeline.js
+ interface ScheduledRunnerInfo {
+ start: number
+ duration: number
+ end: number
+ runner: Runner
+ }
+
class Timeline extends EventTarget {
constructor()
constructor(fn: Function)
- schedule(runner?: Runner, delay?: number, when?: string): this
+ schedule(runner: Runner, delay?: number, when?: string): this
+ schedule(): ScheduledRunnerInfo[]
unschedule(runner: Runner): this
getEndTime(): number
updateTime(): this