• Registers a sound effect.

    Parameters

    • name: string

      The name of the sound effect.

    • 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>

        Parameters

        • target: T
        • key: K

        Returns void

Generated using TypeDoc