Preparing search index...
The search index is not available
Midway v3 Api Reference
Midway v3 Api Reference
@midwayjs/core
IObjectDefinition
Interface IObjectDefinition
Object Definition 对象描述定义
Hierarchy
IObjectDefinition
Index
Properties
allow
Downgrade
bind
Hook?
construct
Method
constructor
Args
create
From
creator
depends
On
destroy
Method
export
handler
Props
id
init
Method
name
namespace?
path
properties
scope
src
Path
Methods
get
Attr
has
Attr
has
Constructor
Args
has
Depends
On
is
Async
is
Request
Scope
is
Singleton
Scope
set
Attr
Properties
allow
Downgrade
allow
Downgrade
:
boolean
Optional
bind
Hook
bind
Hook
?:
(
(
module
:
any
, options
?:
IObjectDefinition
)
=>
void
)
Type declaration
(
module
:
any
, options
?:
IObjectDefinition
)
:
void
Parameters
module:
any
Optional
options:
IObjectDefinition
Returns
void
construct
Method
construct
Method
:
string
constructor
Args
constructor
Args
:
IManagedInstance
[]
create
From
create
From
:
"framework"
|
"file"
|
"module"
creator
creator
:
IObjectCreator
depends
On
depends
On
:
ObjectIdentifier
[]
destroy
Method
destroy
Method
:
string
export
export
:
string
handler
Props
handler
Props
:
{
key
:
string
;
metadata
:
any
;
propertyName
:
string
;
}
[]
id
id
:
string
init
Method
init
Method
:
string
name
name
:
string
Optional
namespace
namespace
?:
string
path
path
:
any
properties
properties
:
IProperties
scope
scope
:
ScopeEnum
src
Path
src
Path
:
string
Methods
get
Attr
get
Attr
(
key
:
ObjectIdentifier
)
:
any
Parameters
key:
ObjectIdentifier
Returns
any
has
Attr
has
Attr
(
key
:
ObjectIdentifier
)
:
boolean
Parameters
key:
ObjectIdentifier
Returns
boolean
has
Constructor
Args
has
Constructor
Args
(
)
:
boolean
Returns
boolean
has
Depends
On
has
Depends
On
(
)
:
boolean
Returns
boolean
is
Async
is
Async
(
)
:
boolean
Returns
boolean
is
Request
Scope
is
Request
Scope
(
)
:
boolean
Returns
boolean
is
Singleton
Scope
is
Singleton
Scope
(
)
:
boolean
Returns
boolean
set
Attr
set
Attr
(
key
:
ObjectIdentifier
, value
:
any
)
:
void
Parameters
key:
ObjectIdentifier
value:
any
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Modules
Midway v3
Api
Reference
@midwayjs/bootstrap
@midwayjs/core
Consumer
Metadata
FaaSMetadata
GRPCMetadata
@midwayjs/decorator
@midwayjs/koa
IObject
Definition
allow
Downgrade
bind
Hook?
construct
Method
constructor
Args
create
From
creator
depends
On
destroy
Method
export
handler
Props
id
init
Method
name
namespace?
path
properties
scope
src
Path
get
Attr
has
Attr
has
Constructor
Args
has
Depends
On
is
Async
is
Request
Scope
is
Singleton
Scope
set
Attr
Generated using
TypeDoc
Object Definition 对象描述定义