- soundEffect(name: string, variations?: number): (<K, T>(target: T, key: K) => void)
-
Parameters
-
name: string
-
Optional
variations: number
Returns (<K, T>(target: T, key: K) => void)
-
- <K, T>(target: T, key: K): void
-
Type Parameters
-
K extends string | number | symbol
-
T extends Record<K, SfxType>
Returns void
Registers a sound effect.