TinyBase logoTinyBase β

WillDelValuesCallback

The WillDelValuesCallback type describes a function that is called before all Values are deleted from the Store.

(): boolean
returnsboolean

true to allow the deletion, false to prevent it.

The callback takes no parameters. It returns true to allow the deletion, or false to prevent it.

Multiple WillDelValuesCallback functions can be registered and they will be called sequentially. If any callback returns false, the chain short-circuits and the Values will not be deleted.

Since

v8.0.0