DB Docs
API Reference
- Core API Reference
- Collection
- createCollection
- liveQueryCollectionOptions
- createLiveQueryCollection
- createOptimisticAction
- createTransaction
- Electric DB Collection
- electricCollectionOptions
- Query DB Collection
- queryCollectionOptions
- RxDB DB Collection
- rxdbCollectionOptions
- PowerSync Collection
- powerSyncCollectionOptions
- createIndexedDB
- indexedDBCollectionOptions
- React Hooks
- useLiveQuery
AI/LLM: This documentation page is available in plain markdown format at/db/latest/docs/reference/type-aliases/IndexConstructor.md
IndexConstructor
ts
type IndexConstructor<TKey> = (id, expression, name?, options?) => BaseIndex<TKey>;Defined in: packages/db/src/indexes/base-index.ts:408
Type for index constructor
Type Parameters#
TKey#
TKey extends string | number = string | number
Parameters#
id#
number
expression#
name?#
string
options?#
any
Returns#
BaseIndex<TKey>