functional-models
Preparing search index...
index
ObjectProperty
Function ObjectProperty
ObjectProperty
<
TObject
extends
Readonly
<
Record
<
string
,
JsonAble
>
>
>
(
config
?:
{}
,
additionalMetadata
?:
{}
,
)
:
Readonly
<
{
createGetter
:
(
value
:
TObject
,
modelData
:
Readonly
,
modelInstance
:
ModelInstance
<
Readonly
<
{
[
s
:
string
]:
any
}
>
,
object
,
object
,
>
,
)
=>
ValueGetter
<
TObject
,
Readonly
<
{
[
s
:
string
]:
any
}
>
,
object
,
object
>
;
getChoices
:
()
=>
readonly
ChoiceTypes
[]
;
getConfig
:
()
=>
object
;
getConstantValue
:
()
=>
undefined
|
TObject
;
getDefaultValue
:
()
=>
undefined
|
TObject
;
getPropertyType
:
()
=>
string
;
getValidator
:
(
valueGetter
:
ValueGetter
<
TObject
,
Readonly
<
{
[
s
:
string
]:
any
}
>
,
object
,
object
,
>
,
)
=>
PropertyValidator
<
Readonly
<
{
[
s
:
string
]:
any
}
>
>
;
}
,
>
A property that has simple objects. These must be JSON compliant. These are validated.
Type Parameters
TObject
extends
Readonly
<
Record
<
string
,
JsonAble
>
>
Parameters
config
:
{}
= {}
additionalMetadata
:
{}
= {}
Returns
Readonly
<
{
createGetter
:
(
value
:
TObject
,
modelData
:
Readonly
,
modelInstance
:
ModelInstance
<
Readonly
<
{
[
s
:
string
]:
any
}
>
,
object
,
object
,
>
,
)
=>
ValueGetter
<
TObject
,
Readonly
<
{
[
s
:
string
]:
any
}
>
,
object
,
object
>
;
getChoices
:
()
=>
readonly
ChoiceTypes
[]
;
getConfig
:
()
=>
object
;
getConstantValue
:
()
=>
undefined
|
TObject
;
getDefaultValue
:
()
=>
undefined
|
TObject
;
getPropertyType
:
()
=>
string
;
getValidator
:
(
valueGetter
:
ValueGetter
<
TObject
,
Readonly
<
{
[
s
:
string
]:
any
}
>
,
object
,
object
,
>
,
)
=>
PropertyValidator
<
Readonly
<
{
[
s
:
string
]:
any
}
>
>
;
}
,
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
functional-models
Loading...
A property that has simple objects. These must be JSON compliant. These are validated.