@tanstack/db
Version:
A reactive client store for building super fast apps on sync
16 lines (15 loc) • 708 B
text/typescript
import { BasicExpression, PropRef } from './ir.js';
type Row = Record<string, unknown>;
/** An `eq(field, literal)` conjunct on a row's own field. */
export type EqualityConjunct = {
path: Array<string>;
literalKey: string;
};
export declare function equalityKey(value: unknown): string | undefined;
export declare function readPath(row: Row, path: Array<string>): unknown;
/**
* The `eq(field, literal)` conjunct `expression` is, with the field's path in
* the row as `rowPath` gives it, or undefined for any other expression.
*/
export declare function equalityConjunct(expression: BasicExpression, rowPath: (ref: PropRef) => Array<string> | undefined): EqualityConjunct | undefined;
export {};