Class: SafeBagValueFactory
Constructors
constructor
• new SafeBagValueFactory(): SafeBagValueFactory
Returns
Properties
items
▪ Static
Private
Optional
items: Record
<string
, BagTypeConstructor
<BagType
>>
Methods
find
▸ find(id
): null
| BagTypeConstructor
<BagType
>
Parameters
Name | Type |
---|---|
id | string |
Returns
null
| BagTypeConstructor
<BagType
>
getItems
▸ getItems(): Record
<string
, BagTypeConstructor
<BagType
>>
Returns
Record
<string
, BagTypeConstructor
<BagType
>>
register
▸ register<T
>(id
, type
): void
Type parameters
Name | Type |
---|---|
T | extends BagType = BagType |
Parameters
Name | Type |
---|---|
id | string |
type | BagTypeConstructor <T > |
Returns
void