Evalkeeper
    Preparing search index...

    Type Alias ReadSource

    Where a read check reads rows from: a store's records (checkStoreReads), or an adapter's raw rows before it fills in defaults (prismaReadCheck in @crowandraven/evalkeeper/prisma), so a value the store would quietly replace still shows. Cases come with their answers in labels.

    type ReadSource = {
        cases(
            suite: string,
        ): Promise<readonly Readonly<Record<string, unknown>>[]>;
        outputs(
            testIds: readonly string[],
        ): Promise<readonly Readonly<Record<string, unknown>>[]>;
        tests(
            suite: string,
            limit: number | undefined,
        ): Promise<readonly Readonly<Record<string, unknown>>[]>;
    }
    Index
    • A suite's cases, retired ones too, each with its answers.

      Parameters

      • suite: string

      Returns Promise<readonly Readonly<Record<string, unknown>>[]>

    • These tests' outputs.

      Parameters

      • testIds: readonly string[]

      Returns Promise<readonly Readonly<Record<string, unknown>>[]>

    • A suite's tests, newest first, at most limit when given.

      Parameters

      • suite: string
      • limit: number | undefined

      Returns Promise<readonly Readonly<Record<string, unknown>>[]>