Anim:

opts: AnimateCompOpt

channels: AnimateChannel[]

isFinished: boolean

duration(): number

animate<T>(name: string , keys: T[] , opts: AnimateOpt ): void

unanimate(name: string ): void

unanimateAll(): void

play(): void

stop(): void

serialize(): Record<string, AnimationChannel>

_update(obj: GameObj , t: number ): void