drupflare/worker - v1.0.0
    Preparing search index...

    Type Alias Ledger

    A pass's accounting record.

    A type rather than an interface: an object type alias carries an implicit index signature, which is what lets a ledger be returned as cronStep()'s result alongside a PHP reply. An interface would not be assignable there.

    t0 exists only until finish() seals the record and deletes it; everything from rowLimit down is set by the one pass that computes it, which is why they are optional rather than a union of five shapes.

    type Ledger = {
        amplification?: number | null;
        cronLast?: number;
        errors: { error: string; table: string | null }[];
        maxRows?: number;
        missing: string[];
        ms?: number;
        overCap?: number;
        pass: string;
        passes?: Record<string, Ledger>;
        rowLimit?: number | null;
        rowsBefore?: number;
        rowsDeleted: number;
        rowsRead: number;
        rowsReleased?: number;
        rowsWritten: number;
        skipped?: string;
        statements: number;
        t0?: number;
        tables: Record<string, TableLedger>;
        underLimit?: boolean;
    }
    Index
    amplification?: number | null
    cronLast?: number
    errors: { error: string; table: string | null }[]
    maxRows?: number
    missing: string[]
    ms?: number
    overCap?: number
    pass: string
    passes?: Record<string, Ledger>
    rowLimit?: number | null
    rowsBefore?: number
    rowsDeleted: number
    rowsRead: number
    rowsReleased?: number
    rowsWritten: number
    skipped?: string
    statements: number
    t0?: number
    tables: Record<string, TableLedger>
    underLimit?: boolean