Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/caviar/web/src/events/types.ts>TimerEvent

⚡ Blazing fast, modern, Game Engine powered by WebGPU for Deno and the browser
Go to Latest
interface TimerEvent
import { type TimerEvent } from "https://deno.land/x/caviar@2.5.3/web/src/events/types.ts";

Properties

duration: number
repeat: number
elapsed: number
delay: number
update: ((delta: number) => boolean) | null
onStart: () => void
onUpdate: (delta: number, progress: number) => void
onRepeat: (repeatCount: number) => void
onComplete: () => void