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:
co-authored by
Claude Opus 4.6
parent
945a776a5a
commit
86bf534f50
@@ -26,7 +26,7 @@ export interface ChoreoContext {
|
|||||||
GROUND_Y: number
|
GROUND_Y: number
|
||||||
FRAME_SIZE: number
|
FRAME_SIZE: number
|
||||||
theme: { bg: string; ground: string; accent: string }
|
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>
|
trackedTimeout: (fn: () => void, ms: number) => ReturnType<typeof setTimeout>
|
||||||
trackedInterval: (fn: () => void, ms: number) => ReturnType<typeof setInterval>
|
trackedInterval: (fn: () => void, ms: number) => ReturnType<typeof setInterval>
|
||||||
clearTracked: (id: ReturnType<typeof setTimeout>) => void
|
clearTracked: (id: ReturnType<typeof setTimeout>) => void
|
||||||
|
|||||||
Reference in New Issue
Block a user