]> source.dussan.org Git - svg.js.git/commitdiff
make duration optional in types
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>
Sun, 3 Sep 2023 09:29:45 +0000 (11:29 +0200)
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>
Sun, 3 Sep 2023 09:29:45 +0000 (11:29 +0200)
svg.js.d.ts

index 57a665c309fdc3b8e02f14bf314d1474b089743d..520ae9880cd5e08c96e092abe4cfeb84c615986d 100644 (file)
@@ -11,7 +11,7 @@ declare type CSSStyleName = Exclude<
 >
 
 // create our own style declaration that includes css vars
-export interface CSSStyleDeclarationWithVars extends CSSStyleDeclaration {
+interface CSSStyleDeclarationWithVars extends CSSStyleDeclaration {
   [key: `--${string}`]: string
 }
 
@@ -969,7 +969,7 @@ declare module '@svgdotjs/svg.js' {
     element(el: Element): this
     timeline(): Timeline
     timeline(timeline: Timeline): this
-    animate(duration: TimeLike, delay?: number, when?: string): this
+    animate(duration?: TimeLike, delay?: number, when?: string): this
     schedule(delay: number, when?: string): this
     schedule(timeline: Timeline, delay?: number, when?: string): this
     unschedule(): this