• Injects the decorated field with this mod's instance.

    Type Parameters

    Returns (<K, T>(target: T, key: K) => void)

      • <K, T>(target: T, key: K): void
      • Type Parameters

        • K extends string | number | symbol

        • T extends { [ k in K]: M extends (new (index: number) => infer I) ? I : default }

        Parameters

        • target: T
        • key: K

        Returns void

  • Injects the decorated field with a mod instance.

    Type Parameters

    Parameters

    • name: string

      Given a mod name, the decorated field will be injected with the enabled/loaded instance of the mod by that name.

    Returns (<K, T>(target: T, key: K) => void)

      • <K, T>(target: T, key: K): void
      • Type Parameters

        • K extends string | number | symbol

        • T extends { [ k in K]: M extends (new (index: number) => infer I) ? I : default }

        Parameters

        • target: T
        • key: K

        Returns void

Generated using TypeDoc