- globalData<M>(): (<K, T>(target: T, key: K) => void)
-
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 }
Returns void
- globalData<M>(name: string): (<K, T>(target: T, key: K) => void)
-
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 }
Returns void
Injects the global data for this mod.