Preparing search index...
The search index is not available
XYO Platform SDK - v3.6.9
XYO Platform SDK
@xyo-network/module-model
ModuleFactory
Class ModuleFactory<TModule>
Type Parameters
TModule
extends
AttachableModuleInstance
Implements
CreatableModuleFactory
<
TModule
>
Index
Constructors
constructor
Properties
config
Schemas
creatable
Module
default
Config
Schema
default
Logger?
default
Params?
labels?
Methods
_get
Root
Function
_no
Override
create
factory
with
Params
Constructors
constructor
new
ModuleFactory
<
TModule
extends
AttachableModuleInstance
>
(
creatableModule
:
CreatableModule
<
TModule
>
,
params
?:
Omit
<
TModule
[
"params"
]
,
"config"
>
&
{
config
?:
Partial
<
TModule
[
"params"
]
[
"config"
]
>
;
}
,
labels
?:
Labels
,
)
:
ModuleFactory
<
TModule
>
Type Parameters
TModule
extends
AttachableModuleInstance
Parameters
creatableModule
:
CreatableModule
<
TModule
>
Optional
params
:
Omit
<
TModule
[
"params"
]
,
"config"
>
&
{
config
?:
Partial
<
TModule
[
"params"
]
[
"config"
]
>
;
}
labels
:
Labels
= {}
Returns
ModuleFactory
<
TModule
>
Properties
config
Schemas
configSchemas
:
string
[]
creatable
Module
creatableModule
:
CreatableModule
<
TModule
>
default
Config
Schema
defaultConfigSchema
:
string
Optional
default
Logger
defaultLogger
?:
Logger
Optional
default
Params
defaultParams
?:
Omit
<
TModule
[
"params"
]
,
"config"
>
&
{
config
?:
Partial
<
TModule
[
"params"
]
[
"config"
]
>
;
}
Optional
labels
labels
?:
Labels
Methods
_get
Root
Function
_getRootFunction
(
funcName
:
string
)
:
any
Parameters
funcName
:
string
Returns
any
_no
Override
_noOverride
(
functionName
:
string
)
:
void
Parameters
functionName
:
string
Returns
void
create
create
<
T
extends
AttachableModuleInstance
>
(
this
:
CreatableModuleFactory
<
T
>
,
params
:
TModule
[
"params"
]
,
)
:
Promise
<
T
>
Type Parameters
T
extends
AttachableModuleInstance
Parameters
this
:
CreatableModuleFactory
<
T
>
params
:
TModule
[
"params"
]
Returns
Promise
<
T
>
factory
factory
<
T
extends
AttachableModuleInstance
>
(
this
:
CreatableModule
<
T
>
,
_params
?:
T
[
"params"
]
,
)
:
CreatableModuleFactory
<
T
>
Type Parameters
T
extends
AttachableModuleInstance
Parameters
this
:
CreatableModule
<
T
>
Optional
_params
:
T
[
"params"
]
Returns
CreatableModuleFactory
<
T
>
Static
with
Params
withParams
<
T
extends
AttachableModuleInstance
>
(
creatableModule
:
CreatableModule
<
T
>
,
params
?:
Omit
<
T
[
"params"
]
,
"config"
>
&
{
config
?:
T
[
"params"
]
[
"config"
]
}
,
labels
?:
Labels
,
)
:
ModuleFactory
<
T
>
Type Parameters
T
extends
AttachableModuleInstance
Parameters
creatableModule
:
CreatableModule
<
T
>
Optional
params
:
Omit
<
T
[
"params"
]
,
"config"
>
&
{
config
?:
T
[
"params"
]
[
"config"
]
}
labels
:
Labels
= {}
Returns
ModuleFactory
<
T
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
config
Schemas
creatable
Module
default
Config
Schema
default
Logger
default
Params
labels
Methods
_get
Root
Function
_no
Override
create
factory
with
Params
XYO Platform SDK - v3.6.9
Loading...