File: IndexOptions.md | Updated: 11/15/2025
Search...
+ K
Auto
Docs Examples GitHub Contributors
Docs Examples GitHub Contributors
Docs Examples GitHub Contributors
Docs Examples Github Contributors
Docs Examples Github Contributors
Docs Examples Github Contributors
Docs Examples Github Contributors
Docs Examples Github Contributors
Maintainers Partners Support Learn StatsBETA Discord Merch Blog GitHub Ethos Brand Guide
Documentation
Framework
React
Version
Latest
Search...
+ K
Menu
Getting Started
Guides
Collections
Frameworks
Community
API Reference
Framework
React
Version
Latest
Menu
Getting Started
Guides
Collections
Frameworks
Community
API Reference
On this page
Copy Markdown
Interface: IndexOptions<TResolver>
==================================
Defined in: packages/db/src/indexes/index-options.ts:6
Enhanced index options that support both sync and async resolvers
Type Parameters
---------------
### TResolver
TResolver extends IndexResolver = IndexResolver
Properties
----------
### indexType?
ts
optional indexType: TResolver;
optional indexType: TResolver;
Defined in: packages/db/src/indexes/index-options.ts:8
ts
optional name: string;
optional name: string;
Defined in: packages/db/src/indexes/index-options.ts:7
ts
optional options: TResolver extends IndexConstructor<any> ? TResolver<TResolver> extends (id, expr, name?, options?) => any ? O : never : TResolver extends () => Promise<TCtor> ? TCtor extends (id, expr, name?, options?) => any ? O : never : never;
optional options: TResolver extends IndexConstructor<any> ? TResolver<TResolver> extends (id, expr, name?, options?) => any ? O : never : TResolver extends () => Promise<TCtor> ? TCtor extends (id, expr, name?, options?) => any ? O : never : never;
Defined in: packages/db/src/indexes/index-options.ts:9
