- registry(cls: (new (upperRegistry: any) => any)): (<K, T>(target: T, key: K) => void)
-
Parameters
-
cls: (new (upperRegistry: any) => any)
-
- new (upperRegistry: any): any
-
Returns any
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, object>
Returns void
Registers a class as a sub-registry. The class can contain its own
@Register
decorators, and they will be loaded by the higher-level registry.The decorated property will be injected with the constructed instance of the provided registry class.