Search
Preparing search index...
The search index is not available
@btilford/ts-base - v1.1.0
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
Lookup
Class Lookup<Factory, Instance>
Type parameters
Factory
Instance
Hierarchy
Lookup
Index
Constructors
constructor
Properties
factories
instances
Methods
get
Factory
get
Instance
Constructors
constructor
new
Lookup
(
lookupFactory
?:
undefined
|
(
(
)
=>
Factory
|
undefined
)
)
:
Lookup
Parameters
Optional
lookupFactory:
undefined
|
(
(
)
=>
Factory
|
undefined
)
Returns
Lookup
Properties
Protected
Readonly
factories
factories
:
WeakMap
<
any
,
{}
>
= new WeakMap<any, Record<string, Factory | null>>()
Protected
Readonly
instances
instances
:
WeakMap
<
any
,
{}
>
= new WeakMap<any, Record<string, Instance | null>>()
Methods
get
Factory
get
Factory
(
thisArg
:
any
, name
:
string
, prefer
?:
Factory
)
:
Factory
|
undefined
Parameters
thisArg:
any
name:
string
Optional
prefer:
Factory
Returns
Factory
|
undefined
get
Instance
get
Instance
(
thisArg
:
any
, name
:
string
, create
:
(
)
=>
Instance
|
undefined
)
:
Instance
|
undefined
Parameters
thisArg:
any
name:
string
create:
(
)
=>
Instance
|
undefined
(
)
:
Instance
|
undefined
Returns
Instance
|
undefined
Returns
Instance
|
undefined
Globals
Lookup
constructor
factories
instances
get
Factory
get
Instance
Generated using
TypeDoc