]> source.dussan.org Git - svg.js.git/commitdiff
remove union return value 1106/head
authorpragdave <dave@pragdave.me>
Thu, 7 May 2020 22:36:01 +0000 (17:36 -0500)
committerpragdave <dave@pragdave.me>
Thu, 7 May 2020 22:36:01 +0000 (17:36 -0500)
src/animation/Timeline.js
svg.js.d.ts

index f37cb7a6238e9b8dfa0534924b5cc10bcf163176..d175ae6d60597e8deff8ed14ea37a0c760d19cbf 100644 (file)
@@ -44,17 +44,10 @@ export default class Timeline extends EventTarget {
     this._stepImmediate = this._stepFn.bind(this, true)
   }
 
-  // returns information on each runner in the timeline.
-  // (start, duration, end, and runner)
-
-  getSchedule () {
-    return this._runners.map(makeSchedule)
-  }
-
   // schedules a runner on the timeline
   schedule (runner, delay, when) {
     if (runner == null) {
-      return this.getSchedule()
+      return this._runners.map(makeSchedule)
     }
 
     // The start time for the next animation can either be given explicitly,
index 02dd6df855b996f74a2cc6e4684d4f5eb66b890b..2d28913b44d27e972b93c1dd84f205396e29e4e2 100644 (file)
@@ -783,8 +783,8 @@ declare module "@svgdotjs/svg.js" {
         constructor()\r
         constructor(fn: Function)\r
 \r
-        getSchedule(): ScheduledRunnerInfo[]\r
-        schedule(runner?: Runner, delay?: number, when?: string): ( this | ScheduledRunnerInfo[] )\r
+        schedule(runner: Runner, delay?: number, when?: string): this\r
+        schedule(): ScheduledRunnerInfo[]\r
         unschedule(runner: Runner): this\r
         getEndTime(): number\r
         updateTime(): this\r