fix: type safeColor return in ChoreoContext using Kaplay Color type

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Dorian
2026-03-09 06:19:55 +00:00
co-authored by Claude Opus 4.6
parent 945a776a5a
commit 86bf534f50
+1 -1
View File
@@ -26,7 +26,7 @@ export interface ChoreoContext {
GROUND_Y: number
FRAME_SIZE: number
theme: { bg: string; ground: string; accent: string }
safeColor: (color: string) => any
safeColor: (color: string) => ReturnType<KaplayInstance['Color']['fromHex']>
trackedTimeout: (fn: () => void, ms: number) => ReturnType<typeof setTimeout>
trackedInterval: (fn: () => void, ms: number) => ReturnType<typeof setInterval>
clearTracked: (id: ReturnType<typeof setTimeout>) => void