@tanstack/db
Version:
A reactive client store for building super fast apps on sync
18 lines (14 loc) • 433 B
text/typescript
import type { QueryIR } from '../ir.js'
import type { CompilationResult } from './index.js'
/**
* Cache for compiled subqueries to avoid duplicate compilation
*/
export type QueryCache = WeakMap<QueryIR, CompilationResult>
/**
* Mapping from optimized queries back to their original queries for caching
*/
export type QueryMapping = WeakMap<QueryIR, QueryIR>
export type WindowOptions = {
offset?: number
limit?: number
}