Type alias: ModelHooksDefinition
ModelHooksDefinition:
object&Record<`property:reading:${string}`,ModelInstancePropertyReadHookCallback> &Record<`property:read:${string}`,ModelInstancePropertyReadHookCallback> &Record<`property:writing:${string}`,ModelInstancePropertyWriteHookCallback> &Record<`property:write:${string}`,ModelInstancePropertyWriteHookCallback>
Model's hooks definition.
Type declaration
boot
boot:
SyncHookCallback<Model>
created
created:
HookCallback<ModelInstance>
creating
creating:
HookCallback<ModelInstance>
destroyed
destroyed:
HookCallback<ModelInstance>
destroying
destroying:
HookCallback<ModelInstance>