Preparing search index...
The search index is not available
XYO Platform SDK - v3.6.9
XYO Platform SDK
@xyo-network/object
AsObjectFactory
Variable AsObjectFactory
Const
AsObjectFactory
:
{
create
:
<
T
extends
TypedObject
>
(
typeCheck
:
TypeCheck
<
T
>
,
)
=>
{
<
TType
extends
TypedObject
>
(
value
:
AnyNonPromise
,
config
?:
TypeCheckConfig
,
)
:
undefined
|
TType
;
<
TType
extends
TypedObject
>
(
value
:
AnyNonPromise
,
assert
:
StringOrAlertFunction
<
T
>
,
config
?:
TypeCheckConfig
,
)
:
TType
;
}
;
createOptional
:
<
T
extends
TypedObject
>
(
typeCheck
:
TypeCheck
<
T
>
,
)
=>
<
TType
extends
T
>
(
value
:
AnyNonPromise
)
=>
TType
|
undefined
;
}
Type declaration
create
:
<
T
extends
TypedObject
>
(
typeCheck
:
TypeCheck
<
T
>
,
)
=>
{
<
TType
extends
TypedObject
>
(
value
:
AnyNonPromise
,
config
?:
TypeCheckConfig
,
)
:
undefined
|
TType
;
<
TType
extends
TypedObject
>
(
value
:
AnyNonPromise
,
assert
:
StringOrAlertFunction
<
T
>
,
config
?:
TypeCheckConfig
,
)
:
TType
;
}
createOptional
:
<
T
extends
TypedObject
>
(
typeCheck
:
TypeCheck
<
T
>
,
)
=>
<
TType
extends
T
>
(
value
:
AnyNonPromise
)
=>
TType
|
undefined
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
XYO Platform SDK - v3.6.9
Loading...