• Creates a new instance of the Registry class.

    Type Parameters

    • ItemT extends object

      The type of the items that the registry will hold.

    Parameters

    • name: string

      The name of the registry.

    • Optional idField: string = 'id'

      The field to use as the ID of items in the registry.

    • Optional mode: RegistryModes = Registry.MODES.CLEAN

      The mode of the registry.

    Returns Registry<ItemT>

    A new instance of the Registry class.