• Preparing search index...
  • The search index is not available
Graviola CRUD
  • Graviola CRUD
  • statement-meta/src
  • applyStatementRetention

Function applyStatementRetention

  • applyStatementRetention(
        nodes: StatementNode[],
        retention?: StatementHistoryRetention,
    ): StatementNode[]

    Order statement history from oldest to newest and apply its retention cap. generatedAt determines recency, with array order breaking equal or missing timestamps. The current node follows currentStatement semantics and is always retained.

    Parameters

    • nodes: StatementNode[]
    • retention: StatementHistoryRetention = "all"

    Returns StatementNode[]

    • Defined in packages/statement-meta/src/index.ts:370

Settings

Member Visibility
Graviola CRUD
  • Loading...

Generated using TypeDoc