Search
Preparing search index...
The search index is not available
@nestjs/core
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
Injector
Class Injector
Hierarchy
Injector
Index
Methods
add
Dependency
Metadata
apply
Done
Hook
apply
Properties
get
Inquirer
Id
instantiate
Class
is
Inquirer
is
Inquirer
Request
load
Controller
load
Ctor
Metadata
load
Enhancers
Per
Context
load
Injectable
load
Instance
load
Middleware
load
Per
Context
load
Properties
Metadata
load
Prototype
load
Provider
lookup
Component
lookup
Component
InImports
lookup
Component
InParent
Modules
reflect
Constructor
Params
reflect
Optional
Params
reflect
Properties
reflect
Self
Params
resolve
Component
Host
resolve
Component
Instance
resolve
Constructor
Params
resolve
Param
Token
resolve
Properties
resolve
Scoped
Component
Host
resolve
Single
Param
Methods
Private
add
Dependency
Metadata
add
Dependency
Metadata
(
keyOrIndex
:
number
|
string
, hostWrapper
:
InstanceWrapper
, instanceWrapper
:
InstanceWrapper
)
:
void
Parameters
keyOrIndex:
number
|
string
hostWrapper:
InstanceWrapper
instanceWrapper:
InstanceWrapper
Returns
void
apply
Done
Hook
apply
Done
Hook<T>
(
wrapper
:
InstancePerContext
<
T
>
)
:
(
)
=>
void
Type parameters
T
Parameters
wrapper:
InstancePerContext
<
T
>
Returns
(
)
=>
void
(
)
:
void
Returns
void
apply
Properties
apply
Properties<T>
(
instance
:
T
, properties
:
PropertyDependency
[]
)
:
void
Type parameters
T =
any
Parameters
instance:
T
properties:
PropertyDependency
[]
Returns
void
Private
get
Inquirer
Id
get
Inquirer
Id
(
inquirer
:
InstanceWrapper
|
undefined
)
:
string
Parameters
inquirer:
InstanceWrapper
|
undefined
Returns
string
instantiate
Class
instantiate
Class<T>
(
instances
:
any
[]
, wrapper
:
InstanceWrapper
, targetMetatype
:
InstanceWrapper
, contextId
?:
ContextId
, inquirer
?:
InstanceWrapper
)
:
Promise
<
T
>
Type parameters
T =
any
Parameters
instances:
any
[]
wrapper:
InstanceWrapper
targetMetatype:
InstanceWrapper
Default value
contextId:
ContextId
= STATIC_CONTEXT
Optional
inquirer:
InstanceWrapper
Returns
Promise
<
T
>
Private
is
Inquirer
is
Inquirer
(
param
:
unknown
, parentInquirer
:
InstanceWrapper
|
undefined
)
:
InstanceWrapper
<
any
>
Parameters
param:
unknown
parentInquirer:
InstanceWrapper
|
undefined
Returns
InstanceWrapper
<
any
>
Private
is
Inquirer
Request
is
Inquirer
Request
(
item
:
InstanceWrapper
, parentInquirer
:
InstanceWrapper
|
undefined
)
:
InstanceWrapper
<
any
>
Parameters
item:
InstanceWrapper
parentInquirer:
InstanceWrapper
|
undefined
Returns
InstanceWrapper
<
any
>
load
Controller
load
Controller
(
wrapper
:
InstanceWrapper
<
Controller
>
, moduleRef
:
Module
, contextId
?:
ContextId
)
:
Promise
<
void
>
Parameters
wrapper:
InstanceWrapper
<
Controller
>
moduleRef:
Module
Default value
contextId:
ContextId
= STATIC_CONTEXT
Returns
Promise
<
void
>
load
Ctor
Metadata
load
Ctor
Metadata
(
metadata
:
InstanceWrapper
<
any
>
[]
, contextId
:
ContextId
, inquirer
?:
InstanceWrapper
, parentInquirer
?:
InstanceWrapper
)
:
Promise
<
any
[]
>
Parameters
metadata:
InstanceWrapper
<
any
>
[]
contextId:
ContextId
Optional
inquirer:
InstanceWrapper
Optional
parentInquirer:
InstanceWrapper
Returns
Promise
<
any
[]
>
load
Enhancers
Per
Context
load
Enhancers
Per
Context
(
wrapper
:
InstanceWrapper
, ctx
:
ContextId
, inquirer
?:
InstanceWrapper
)
:
Promise
<
void
>
Parameters
wrapper:
InstanceWrapper
ctx:
ContextId
Optional
inquirer:
InstanceWrapper
Returns
Promise
<
void
>
load
Injectable
load
Injectable<T>
(
wrapper
:
InstanceWrapper
<
T
>
, moduleRef
:
Module
, contextId
?:
ContextId
, inquirer
?:
InstanceWrapper
)
:
Promise
<
void
>
Type parameters
T =
any
Parameters
wrapper:
InstanceWrapper
<
T
>
moduleRef:
Module
Default value
contextId:
ContextId
= STATIC_CONTEXT
Optional
inquirer:
InstanceWrapper
Returns
Promise
<
void
>
load
Instance
load
Instance<T>
(
wrapper
:
InstanceWrapper
<
T
>
, collection
:
Map
<
string
,
InstanceWrapper
>
, moduleRef
:
Module
, contextId
?:
ContextId
, inquirer
?:
InstanceWrapper
)
:
Promise
<
void
>
Type parameters
T
Parameters
wrapper:
InstanceWrapper
<
T
>
collection:
Map
<
string
,
InstanceWrapper
>
moduleRef:
Module
Default value
contextId:
ContextId
= STATIC_CONTEXT
Optional
inquirer:
InstanceWrapper
Returns
Promise
<
void
>
load
Middleware
load
Middleware
(
wrapper
:
InstanceWrapper
, collection
:
Map
<
string
,
InstanceWrapper
>
, moduleRef
:
Module
, contextId
?:
ContextId
, inquirer
?:
InstanceWrapper
)
:
Promise
<
void
>
Parameters
wrapper:
InstanceWrapper
collection:
Map
<
string
,
InstanceWrapper
>
moduleRef:
Module
Default value
contextId:
ContextId
= STATIC_CONTEXT
Optional
inquirer:
InstanceWrapper
Returns
Promise
<
void
>
load
Per
Context
load
Per
Context<T>
(
instance
:
T
, moduleRef
:
Module
, collection
:
Map
<
string
,
InstanceWrapper
>
, ctx
:
ContextId
, wrapper
?:
InstanceWrapper
)
:
Promise
<
T
>
Type parameters
T =
any
Parameters
instance:
T
moduleRef:
Module
collection:
Map
<
string
,
InstanceWrapper
>
ctx:
ContextId
Optional
wrapper:
InstanceWrapper
Returns
Promise
<
T
>
load
Properties
Metadata
load
Properties
Metadata
(
metadata
:
PropertyMetadata
[]
, contextId
:
ContextId
, inquirer
?:
InstanceWrapper
)
:
Promise
<
PropertyDependency
[]
>
Parameters
metadata:
PropertyMetadata
[]
contextId:
ContextId
Optional
inquirer:
InstanceWrapper
Returns
Promise
<
PropertyDependency
[]
>
load
Prototype
load
Prototype<T>
(
__namedParameters
:
{
name
:
any
}
, collection
:
Map
<
string
,
InstanceWrapper
<
T
>
>
, contextId
?:
ContextId
)
:
void
Type parameters
T
Parameters
__namedParameters:
{
name
:
any
}
name
:
any
collection:
Map
<
string
,
InstanceWrapper
<
T
>
>
Default value
contextId:
ContextId
= STATIC_CONTEXT
Returns
void
load
Provider
load
Provider
(
wrapper
:
InstanceWrapper
<
Injectable
>
, moduleRef
:
Module
, contextId
?:
ContextId
, inquirer
?:
InstanceWrapper
)
:
Promise
<
void
>
Parameters
wrapper:
InstanceWrapper
<
Injectable
>
moduleRef:
Module
Default value
contextId:
ContextId
= STATIC_CONTEXT
Optional
inquirer:
InstanceWrapper
Returns
Promise
<
void
>
lookup
Component
lookup
Component<T>
(
providers
:
Map
<
string
|
symbol
,
InstanceWrapper
>
, moduleRef
:
Module
, dependencyContext
:
InjectorDependencyContext
, wrapper
:
InstanceWrapper
<
T
>
, contextId
?:
ContextId
, inquirer
?:
InstanceWrapper
, keyOrIndex
?:
string
|
number
)
:
Promise
<
InstanceWrapper
<
T
>
>
Type parameters
T =
any
Parameters
providers:
Map
<
string
|
symbol
,
InstanceWrapper
>
moduleRef:
Module
dependencyContext:
InjectorDependencyContext
wrapper:
InstanceWrapper
<
T
>
Default value
contextId:
ContextId
= STATIC_CONTEXT
Optional
inquirer:
InstanceWrapper
Optional
keyOrIndex:
string
|
number
Returns
Promise
<
InstanceWrapper
<
T
>
>
lookup
Component
InImports
lookup
Component
InImports
(
moduleRef
:
Module
, name
:
any
, wrapper
:
InstanceWrapper
, moduleRegistry
?:
any
[]
, contextId
?:
ContextId
, inquirer
?:
InstanceWrapper
, keyOrIndex
?:
string
|
number
, isTraversing
?:
boolean
)
:
Promise
<
any
>
Parameters
moduleRef:
Module
name:
any
wrapper:
InstanceWrapper
Default value
moduleRegistry:
any
[]
= []
Default value
contextId:
ContextId
= STATIC_CONTEXT
Optional
inquirer:
InstanceWrapper
Optional
keyOrIndex:
string
|
number
Optional
isTraversing:
boolean
Returns
Promise
<
any
>
lookup
Component
InParent
Modules
lookup
Component
InParent
Modules<T>
(
dependencyContext
:
InjectorDependencyContext
, moduleRef
:
Module
, wrapper
:
InstanceWrapper
<
T
>
, contextId
?:
ContextId
, inquirer
?:
InstanceWrapper
, keyOrIndex
?:
string
|
number
)
:
Promise
<
any
>
Type parameters
T =
any
Parameters
dependencyContext:
InjectorDependencyContext
moduleRef:
Module
wrapper:
InstanceWrapper
<
T
>
Default value
contextId:
ContextId
= STATIC_CONTEXT
Optional
inquirer:
InstanceWrapper
Optional
keyOrIndex:
string
|
number
Returns
Promise
<
any
>
reflect
Constructor
Params
reflect
Constructor
Params<T>
(
type
:
Type
<
T
>
)
:
any
[]
Type parameters
T
Parameters
type:
Type
<
T
>
Returns
any
[]
reflect
Optional
Params
reflect
Optional
Params<T>
(
type
:
Type
<
T
>
)
:
any
[]
Type parameters
T
Parameters
type:
Type
<
T
>
Returns
any
[]
reflect
Properties
reflect
Properties<T>
(
type
:
Type
<
T
>
)
:
PropertyDependency
[]
Type parameters
T
Parameters
type:
Type
<
T
>
Returns
PropertyDependency
[]
reflect
Self
Params
reflect
Self
Params<T>
(
type
:
Type
<
T
>
)
:
any
[]
Type parameters
T
Parameters
type:
Type
<
T
>
Returns
any
[]
resolve
Component
Host
resolve
Component
Host<T>
(
moduleRef
:
Module
, instanceWrapper
:
InstanceWrapper
<
T
>
, contextId
?:
ContextId
, inquirer
?:
InstanceWrapper
)
:
Promise
<
InstanceWrapper
>
Type parameters
T
Parameters
moduleRef:
Module
instanceWrapper:
InstanceWrapper
<
T
>
Default value
contextId:
ContextId
= STATIC_CONTEXT
Optional
inquirer:
InstanceWrapper
Returns
Promise
<
InstanceWrapper
>
resolve
Component
Instance
resolve
Component
Instance<T>
(
moduleRef
:
Module
, name
:
any
, dependencyContext
:
InjectorDependencyContext
, wrapper
:
InstanceWrapper
<
T
>
, contextId
?:
ContextId
, inquirer
?:
InstanceWrapper
, keyOrIndex
?:
string
|
number
)
:
Promise
<
InstanceWrapper
>
Type parameters
T
Parameters
moduleRef:
Module
name:
any
dependencyContext:
InjectorDependencyContext
wrapper:
InstanceWrapper
<
T
>
Default value
contextId:
ContextId
= STATIC_CONTEXT
Optional
inquirer:
InstanceWrapper
Optional
keyOrIndex:
string
|
number
Returns
Promise
<
InstanceWrapper
>
resolve
Constructor
Params
resolve
Constructor
Params<T>
(
wrapper
:
InstanceWrapper
<
T
>
, moduleRef
:
Module
, inject
:
InjectorDependency
[]
, callback
:
(
args
:
unknown
[]
)
=>
void
, contextId
?:
ContextId
, inquirer
?:
InstanceWrapper
, parentInquirer
?:
InstanceWrapper
)
:
Promise
<
void
>
Type parameters
T
Parameters
wrapper:
InstanceWrapper
<
T
>
moduleRef:
Module
inject:
InjectorDependency
[]
callback:
(
args
:
unknown
[]
)
=>
void
(
args
:
unknown
[]
)
:
void
Parameters
args:
unknown
[]
Returns
void
Default value
contextId:
ContextId
= STATIC_CONTEXT
Optional
inquirer:
InstanceWrapper
Optional
parentInquirer:
InstanceWrapper
Returns
Promise
<
void
>
resolve
Param
Token
resolve
Param
Token<T>
(
wrapper
:
InstanceWrapper
<
T
>
, param
:
Type
<
any
>
|
string
|
symbol
|
any
)
:
any
Type parameters
T
Parameters
wrapper:
InstanceWrapper
<
T
>
param:
Type
<
any
>
|
string
|
symbol
|
any
Returns
any
resolve
Properties
resolve
Properties<T>
(
wrapper
:
InstanceWrapper
<
T
>
, moduleRef
:
Module
, inject
?:
InjectorDependency
[]
, contextId
?:
ContextId
, inquirer
?:
InstanceWrapper
, parentInquirer
?:
InstanceWrapper
)
:
Promise
<
PropertyDependency
[]
>
Type parameters
T
Parameters
wrapper:
InstanceWrapper
<
T
>
moduleRef:
Module
Optional
inject:
InjectorDependency
[]
Default value
contextId:
ContextId
= STATIC_CONTEXT
Optional
inquirer:
InstanceWrapper
Optional
parentInquirer:
InstanceWrapper
Returns
Promise
<
PropertyDependency
[]
>
Private
resolve
Scoped
Component
Host
resolve
Scoped
Component
Host
(
item
:
InstanceWrapper
, contextId
:
ContextId
, inquirer
?:
InstanceWrapper
, parentInquirer
?:
InstanceWrapper
)
:
InstanceWrapper
<
any
>
|
Promise
<
InstanceWrapper
<
any
>
>
Parameters
item:
InstanceWrapper
contextId:
ContextId
Optional
inquirer:
InstanceWrapper
Optional
parentInquirer:
InstanceWrapper
Returns
InstanceWrapper
<
any
>
|
Promise
<
InstanceWrapper
<
any
>
>
resolve
Single
Param
resolve
Single
Param<T>
(
wrapper
:
InstanceWrapper
<
T
>
, param
:
Type
<
any
>
|
string
|
symbol
|
any
, dependencyContext
:
InjectorDependencyContext
, moduleRef
:
Module
, contextId
?:
ContextId
, inquirer
?:
InstanceWrapper
, keyOrIndex
?:
string
|
number
)
:
Promise
<
InstanceWrapper
<
any
>
>
Type parameters
T
Parameters
wrapper:
InstanceWrapper
<
T
>
param:
Type
<
any
>
|
string
|
symbol
|
any
dependencyContext:
InjectorDependencyContext
moduleRef:
Module
Default value
contextId:
ContextId
= STATIC_CONTEXT
Optional
inquirer:
InstanceWrapper
Optional
keyOrIndex:
string
|
number
Returns
Promise
<
InstanceWrapper
<
any
>
>
Globals
Injector
add
Dependency
Metadata
apply
Done
Hook
apply
Properties
get
Inquirer
Id
instantiate
Class
is
Inquirer
is
Inquirer
Request
load
Controller
load
Ctor
Metadata
load
Enhancers
Per
Context
load
Injectable
load
Instance
load
Middleware
load
Per
Context
load
Properties
Metadata
load
Prototype
load
Provider
lookup
Component
lookup
Component
InImports
lookup
Component
InParent
Modules
reflect
Constructor
Params
reflect
Optional
Params
reflect
Properties
reflect
Self
Params
resolve
Component
Host
resolve
Component
Instance
resolve
Constructor
Params
resolve
Param
Token
resolve
Properties
resolve
Scoped
Component
Host
resolve
Single
Param
Generated using
TypeDoc