• Registers a packet.

    Type Parameters

    Parameters

    • cls: C

      The packet class.

      The decorated property will be injected with the passed packet class.

    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, C>

        Parameters

        • target: T
        • key: K

        Returns void

Generated using TypeDoc