TinyBase logoTinyBase β

WillDelTableCallback

The WillDelTableCallback type describes a function that is called before a Table is deleted from the Store.

(tableId: Id): boolean
TypeDescription
tableIdId

The Id of the Table being deleted.

returnsboolean

true to allow the deletion, false to prevent it.

The callback receives the table Id of the Table about to be deleted. It returns true to allow the deletion, or false to prevent it.

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

Since

v8.0.0