Function: onPropertyWriting()
onPropertyWriting(model, callback)
onPropertyWriting<
D
,I
,V
,K
>(model
,callback
): () =>void
Type parameters
• D extends object
• I extends ModelInstance
<D
>
• V extends ModelValues
<D
>
• K extends string
| number
| symbol
Parameters
• model: Model
<D
, I
>
• callback
Returns
Function
Returns
void
Source
packages/core/src/model/hooks/properties/onPropertyWriting.ts:3
onPropertyWriting(model, key, callback)
onPropertyWriting<
D
,I
,V
,K
>(model
,key
,callback
): () =>void
Type parameters
• D extends object
• I extends ModelInstance
<D
>
• V extends ModelValues
<D
>
• K extends string
| number
| symbol
Parameters
• model: Model
<D
, I
>
• key: K
• callback
Returns
Function
Returns
void
Source
packages/core/src/model/hooks/properties/onPropertyWriting.ts:3
onPropertyWriting(model, callback)
onPropertyWriting<
D
,V
,K
>(model
,callback
): () =>void
Type parameters
• D extends object
• V extends ModelValues
<D
>
• K extends string
| number
| symbol
Parameters
• model: ModelComposable
<D
>
• callback
Returns
Function
Returns
void
Source
packages/core/src/model/hooks/properties/onPropertyWriting.ts:3
onPropertyWriting(model, key, callback)
onPropertyWriting<
D
,V
,K
>(model
,key
,callback
): () =>void
Type parameters
• D extends object
• V extends ModelValues
<D
>
• K extends string
| number
| symbol
Parameters
• model: ModelComposable
<D
>
• key: K
• callback
Returns
Function
Returns
void
Source
packages/core/src/model/hooks/properties/onPropertyWriting.ts:3
onPropertyWriting(model, callback)
onPropertyWriting<
D
,V
,K
>(model
,callback
): () =>void
Type parameters
• D extends object
• V extends ModelValues
<D
>
• K extends string
| number
| symbol
Parameters
• model: ModelFactory
<D
>
• callback
Returns
Function
Returns
void
Source
packages/core/src/model/hooks/properties/onPropertyWriting.ts:3
onPropertyWriting(model, key, callback)
onPropertyWriting<
D
,V
,K
>(model
,key
,callback
): () =>void
Type parameters
• D extends object
• V extends ModelValues
<D
>
• K extends string
| number
| symbol
Parameters
• model: ModelFactory
<D
>
• key: K
• callback
Returns
Function
Returns
void
Source
packages/core/src/model/hooks/properties/onPropertyWriting.ts:3