argia-migrator - v0.3.0
    Preparing search index...

    Type Alias MigrationEvent<M>

    MigrationEvent:
        | {
            error: unknown;
            ids: readonly string[];
            operation: "write"
            | "delete";
            profile: string;
            type: "shadow_write_failed";
        }
        | {
            error: unknown;
            profile: string;
            text: string;
            type: "shadow_query_failed";
        }
        | {
            from: readonly Hit<M>[];
            k: number;
            text: string;
            to: readonly Hit<M>[];
            type: "compare";
        }

    Type Parameters

    • M = unknown

    Type Declaration

    • {
          error: unknown;
          ids: readonly string[];
          operation: "write" | "delete";
          profile: string;
          type: "shadow_write_failed";
      }
    • { error: unknown; profile: string; text: string; type: "shadow_query_failed" }
    • {
          from: readonly Hit<M>[];
          k: number;
          text: string;
          to: readonly Hit<M>[];
          type: "compare";
      }
      • Readonlyfrom: readonly Hit<M>[]

        Hits returned by the from profile, best first.

      • Readonlyk: number
      • Readonlytext: string
      • Readonlyto: readonly Hit<M>[]

        Hits returned by the to profile, best first. Scores from two models are not on one scale.

      • Readonlytype: "compare"