Browse Source

make duration optional in types

master
Ulrich-Matthias Schäfer 9 months ago
parent
commit
742394edf6
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      svg.js.d.ts

+ 2
- 2
svg.js.d.ts View File

> >


// create our own style declaration that includes css vars // create our own style declaration that includes css vars
export interface CSSStyleDeclarationWithVars extends CSSStyleDeclaration {
interface CSSStyleDeclarationWithVars extends CSSStyleDeclaration {
[key: `--${string}`]: string [key: `--${string}`]: string
} }


element(el: Element): this element(el: Element): this
timeline(): Timeline timeline(): Timeline
timeline(timeline: Timeline): this 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(delay: number, when?: string): this
schedule(timeline: Timeline, delay?: number, when?: string): this schedule(timeline: Timeline, delay?: number, when?: string): this
unschedule(): this unschedule(): this

Loading…
Cancel
Save