Function: onPropertyRead()
onPropertyRead(model, callback)
onPropertyRead<
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/onPropertyRead.ts:3
onPropertyRead(model, key, callback)
onPropertyRead<
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/onPropertyRead.ts:3
onPropertyRead(model, callback)
onPropertyRead<
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/onPropertyRead.ts:3
onPropertyRead(model, key, callback)
onPropertyRead<
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/onPropertyRead.ts:3
onPropertyRead(model, callback)
onPropertyRead<
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/onPropertyRead.ts:3
onPropertyRead(model, key, callback)
onPropertyRead<
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/onPropertyRead.ts:3