@samatawy/checks
Preparing search index...
index
UpdatableClass
Type Alias UpdatableClass<T>
type
UpdatableClass
<
T
>
=
{
validateUpdate
(
oldValue
:
unknown
,
newValue
:
unknown
,
)
:
ObjectCheck
|
Promise
<
ObjectCheck
>
;
updateFrom
(
existing
:
T
,
input
:
any
)
:
T
|
Promise
<
T
>
;
new
(
...
args
:
any
[]
)
:
T
;
}
Type Parameters
T
new
UpdatableClass
(
...
args
:
any
[]
)
:
T
Parameters
...
args
:
any
[]
Returns
T
Index
Methods
validate
Update
update
From
Methods
validate
Update
validateUpdate
(
oldValue
:
unknown
,
newValue
:
unknown
,
)
:
ObjectCheck
|
Promise
<
ObjectCheck
>
Parameters
oldValue
:
unknown
newValue
:
unknown
Returns
ObjectCheck
|
Promise
<
ObjectCheck
>
update
From
updateFrom
(
existing
:
T
,
input
:
any
)
:
T
|
Promise
<
T
>
Parameters
existing
:
T
input
:
any
Returns
T
|
Promise
<
T
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
validate
Update
update
From
@samatawy/checks
Loading...