@tanstack/db
Version:
A reactive client store for building super fast apps on sync
10 lines (9 loc) • 473 B
text/typescript
import { BasicExpression } from '../query/ir.cjs';
import { CollectionImpl } from '../collection.cjs';
export interface AutoIndexConfig {
autoIndex?: `off` | `eager`;
}
/**
* Analyzes a where expression and creates indexes for all simple operations on single fields
*/
export declare function ensureIndexForExpression<T extends Record<string, any>, TKey extends string | number>(expression: BasicExpression, collection: CollectionImpl<T, TKey, any, any, any>): void;