CmpStr - v3.2.1
    Preparing search index...

    Function Registry

    • Registry function to create a service for managing class constructors.

      Type Parameters

      • T

        The basic type of all registry class constructors

      Parameters

      • reg: string

        The name of the registry

      • ctor: RegistryConstructor<T>

        The base constructor that all registered classes must extend

      Returns RegistryService<T>

      • An object with methods to register, remove, check, get, and list classes

      If the registry already exists (overwriting is forbidden)