- instance<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 (new (index: number) => infer I) ? I : default }
Returns void
- instance<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 (new (index: number) => infer I) ? I : default }
Returns void
Injects the decorated field with this mod's instance.