interface MockTypedQuerySource<TRow> The rows a typed mock serves for a query collection (query-collections/1).
Properties
rows
readonly rows: readonly TRow[]; The rows in the source's own order.
key
readonly key?: (row: TRow) => string; The wire key of a row. Generated mocks default it to the row's id or key member when the row has one of the collection's key type.
latency
readonly latency?: number; Milliseconds each load takes, like a database: virtual time with manual scheduling. Defaults to 0.
custom
readonly custom?: Readonly<Record<string, (row: TRow, value: unknown) => boolean>>; Custom filters by name: whether a row passes with the filter's value.