UNPKG

@tanstack/db

Version:

A reactive client store for building super fast apps on sync

13 lines (12 loc) 495 B
import { IndexConstructor } from './base-index.js'; /** * Options for creating an index */ export interface IndexOptions<TIndexType extends IndexConstructor = IndexConstructor> { /** Optional name for the index */ name?: string; /** Index type to use (e.g., BasicIndex, BTreeIndex) */ indexType?: TIndexType; /** Options passed to the index constructor */ options?: TIndexType extends new (id: number, expr: any, name?: string, options?: infer O) => any ? O : never; }