Skip to main content

Class: SafeBagValueFactory

Constructors

constructor

new SafeBagValueFactory(): SafeBagValueFactory

Returns

SafeBagValueFactory

Properties

items

Static Private Optional items: Record<string, BagTypeConstructor<BagType>>

Methods

find

find(id): null | BagTypeConstructor<BagType>

Parameters

NameType
idstring

Returns

null | BagTypeConstructor<BagType>


getItems

getItems(): Record<string, BagTypeConstructor<BagType>>

Returns

Record<string, BagTypeConstructor<BagType>>


register

register<T>(id, type): void

Type parameters

NameType
Textends BagType = BagType

Parameters

NameType
idstring
typeBagTypeConstructor<T>

Returns

void