getTableBeforeWrite
Summary
Returns a table's optional before-write lifecycle callback.
Signature
function getTableBeforeWrite<table extends AnyTable>(
table: table,
):
| TableBeforeWrite<{
[key in string]: {
[column in string]: ColumnOutput<TableColumns<table>[column]>;
}[key];
}>
| undefined;
Params
table
Returns
Before-write callback or undefined.