• Registers a stat.

    Parameters

    • name: string

      The name of the stat.

    • Optional description: IStatDisplayDescription & IStatDescription

      The definition of the stat.

      The decorated property will be injected with the id of the registered stat.

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

        Parameters

        • target: T
        • key: K

        Returns void

Generated using TypeDoc