Member Junction
    Preparing search index...

    Interface PreviousVersionArgs<TRow, TSpec>

    What VersionedRowGuard.PreviousVersion reads: the lineage, the version being saved, and how to load and parse a version.

    interface PreviousVersionArgs<TRow extends { ID: string }, TSpec> {
        Label: string;
        LineageRootID: string;
        Load: (version: number) => Promise<RowRead<TRow>>;
        Parse: (row: TRow) => ParseResult<TSpec>;
        Version: number;
    }

    Type Parameters

    • TRow extends { ID: string }
    • TSpec
    Index

    Properties

    Label: string

    The entity's display name in messages (Prediction Unit, Evaluation Protocol).

    LineageRootID: string

    The lineage whose version n−1 is read.

    Load: (version: number) => Promise<RowRead<TRow>>

    Reads one version of the lineage as a plain row.

    Parse: (row: TRow) => ParseResult<TSpec>

    Parses a row into its spec.

    Version: number

    The version being saved; its predecessor is read.