• 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.

    Parameters

    • cls: (new (upperRegistry: any) => any)
        • new (upperRegistry: any): any
        • Parameters

          • upperRegistry: 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>

        Parameters

        • target: T
        • key: K

        Returns void

Generated using TypeDoc