CmpStr - v3.2.1
    Preparing search index...

    Function createFromRegistry

    • Create an instance of a class from a specific registry.

      Type Parameters

      Parameters

      • reg: string

        The name of the registry

      • cls: string | T

        The class itself or name of the class to instantiate

      • ...args: any[]

        Arguments to pass to the class constructor

      Returns InstanceType<T>

      • An instance of the class

      If the class cannot be instantiated