Skip to content

TypedCommand

INFO

Inherits: Command

A command that takes a specific type.

Generics

T

Constructor details

ts
new TypedCommand<T>({
  event,
  startTime,
  endTime,
  startValue,
  endValue,
  easing,
})
  • Parameters:
    • event (string): Name of the command.
    • startTime (string | number | Timestamp) (Timestamp): Start time of the command.
    • endTime (string | number | Timestamp | undefined) (Timestamp): End time of the command. Defaults to undefined.
    • startValue (T) (T): Start value of the command.
    • endValue (T | undefined): End value of the command. Defaults to undefined.
    • easing (Easing | undefined) (Easing): The easing function for this command. Defaults to undefined.

Properties

Properties inherited from Command:

startTime

endTime

The end time of this command.

startValue

The start value of this command.

  • Type: T (T)

endValue

The end value of this command.

  • Type: T (T)

easing

The easing function for this command.