lazarljubenovic/neewt

Add overload where the whole tween is an object

Opened this issue · 0 comments

Useful when a consumer application creates a tween but doesn't run it immediately.

Currently each consumer will probably have something like

interface TweenModel {
  duration: number
  delay?: number
  // ...
}

and then pass such an object manually to an overload. Additional complications arise because of the optional parameter.