diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2020-05-08 18:28:32 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-08 18:28:32 +1000 |
commit | 36689d5e7272db5ce982ff52b4c8772564b13004 (patch) | |
tree | bc2924ca190f3d70b586618413af5e08e52b1697 | |
parent | c8cb22863bf8c3ac157f6098be9154908aea9ec2 (diff) | |
parent | 66094c88a8c6452cbc0943af282ba9757b5f5421 (diff) | |
download | svg.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.ts | 10 |
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
|