Preparing search index...
The search index is not available
XYO Platform SDK - v3.6.9
XYO Platform SDK
@xyo-network/module-model
ResolveHelper
Class ResolveHelper
Hierarchy
ResolveHelperStatic
ResolveHelper
Index
Constructors
constructor
Properties
default
Logger?
transformers
Methods
resolve
resolve
Module
Identifier
trace
Module
Identifier
transform
Module
Identifier
validate
Required
Resolve
Constructors
constructor
new
ResolveHelper
()
:
ResolveHelper
Returns
ResolveHelper
Properties
Static
Optional
default
Logger
defaultLogger
?:
Logger
Static
transformers
transformers
:
ModuleIdentifierTransformer
[]
= []
Methods
Static
resolve
resolve
<
T
extends
ModuleInstance
=
ModuleInstance
>
(
config
:
ResolveHelperConfig
,
all
:
"*"
,
options
?:
ModuleFilterOptions
<
T
>
,
)
:
Promise
<
T
[]
>
Type Parameters
T
extends
ModuleInstance
=
ModuleInstance
Parameters
config
:
ResolveHelperConfig
all
:
"*"
Optional
options
:
ModuleFilterOptions
<
T
>
Returns
Promise
<
T
[]
>
resolve
<
T
extends
ModuleInstance
=
ModuleInstance
>
(
config
:
ResolveHelperConfig
,
filter
:
ModuleFilter
,
options
?:
ModuleFilterOptions
<
T
>
,
)
:
Promise
<
T
[]
>
Type Parameters
T
extends
ModuleInstance
=
ModuleInstance
Parameters
config
:
ResolveHelperConfig
filter
:
ModuleFilter
Optional
options
:
ModuleFilterOptions
<
T
>
Returns
Promise
<
T
[]
>
resolve
<
T
extends
ModuleInstance
=
ModuleInstance
>
(
config
:
ResolveHelperConfig
,
id
:
string
,
options
?:
ModuleFilterOptions
<
T
>
,
)
:
Promise
<
undefined
|
T
>
Type Parameters
T
extends
ModuleInstance
=
ModuleInstance
Parameters
config
:
ResolveHelperConfig
id
:
string
Optional
options
:
ModuleFilterOptions
<
T
>
Returns
Promise
<
undefined
|
T
>
Static
resolve
Module
Identifier
resolveModuleIdentifier
<
T
extends
ModuleInstance
=
ModuleInstance
>
(
resolver
:
ModuleResolver
,
path
:
string
,
required
?:
boolean
,
)
:
Promise
<
undefined
|
T
>
Type Parameters
T
extends
ModuleInstance
=
ModuleInstance
Parameters
resolver
:
ModuleResolver
path
:
string
Optional
required
:
boolean
Returns
Promise
<
undefined
|
T
>
Static
trace
Module
Identifier
traceModuleIdentifier
(
resolver
:
ModuleResolver
,
path
:
string
,
)
:
Promise
<
Lowercase
<
string
>
[]
>
Parameters
resolver
:
ModuleResolver
path
:
string
Returns
Promise
<
Lowercase
<
string
>
[]
>
Static
transform
Module
Identifier
transformModuleIdentifier
(
identifier
:
string
,
transformers
?:
ModuleIdentifierTransformer
[]
,
)
:
Promise
<
undefined
|
string
>
Parameters
identifier
:
string
transformers
:
ModuleIdentifierTransformer
[]
= ResolveHelper.transformers
Returns
Promise
<
undefined
|
string
>
Static
validate
Required
Resolve
validateRequiredResolve
(
required
:
boolean
|
"warn"
|
"log"
,
result
:
undefined
|
ModuleInstance
|
ModuleInstance
[]
,
idOrFilter
:
string
|
ModuleFilter
,
logger
?:
undefined
|
Logger
,
)
:
void
Parameters
required
:
boolean
|
"warn"
|
"log"
result
:
undefined
|
ModuleInstance
|
ModuleInstance
[]
idOrFilter
:
string
|
ModuleFilter
logger
:
undefined
|
Logger
= ...
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
default
Logger
transformers
Methods
resolve
resolve
Module
Identifier
trace
Module
Identifier
transform
Module
Identifier
validate
Required
Resolve
XYO Platform SDK - v3.6.9
Loading...