• Injects the global data for this mod.

    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 {
              initializeGlobalData(data?: D): D;
          } ? D : never }

        Parameters

        • target: T
        • key: K

        Returns void

  • Injects the global data for a mod by its name or class.

    Type Parameters

    Parameters

    • name: string

      Given a mod name, the decorated field will be injected with global data from 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 {
              initializeGlobalData(data?: D): D;
          } ? D : never }

        Parameters

        • target: T
        • key: K

        Returns void

Generated using TypeDoc