Documentation / @zerotal/audit / Auditable
Function: Auditable()
Auditable<
TBase>(Base): {(...args):Auditable;prototype:Auditable<any>; } &TBase
Defined in: audit/src/Auditable.ts:85
Auditable(Base) — mixin that enables automatic audit logging for the resulting
model and adds the instance methods auditLog() and auditLogs(). Configure via
overridable static fields on the model (see file header).
Type Parameters
TBase
TBase extends Constructor<object>
Parameters
Base
TBase
Returns
{(...args): Auditable; prototype: Auditable<any>; } & TBase