Open History to see the last commit
1---
2id: IndexOptions
3title: IndexOptions
4---
5
6<!-- DO NOT EDIT: this page is autogenerated from the type comments -->
7
8# Interface: IndexOptions\<TResolver\>
9
10Defined in: [packages/db/src/indexes/index-options.ts:6](https://github.com/TanStack/db/blob/main/packages/db/src/indexes/index-options.ts#L6)
11
12Enhanced index options that support both sync and async resolvers
13
14## Type Parameters
15
16• **TResolver** *extends* [`IndexResolver`](../../type-aliases/indexresolver.md) = [`IndexResolver`](../../type-aliases/indexresolver.md)
17
18## Properties
19
20### indexType?
21
22```ts
23optional indexType: TResolver;
24```
25
26Defined in: [packages/db/src/indexes/index-options.ts:8](https://github.com/TanStack/db/blob/main/packages/db/src/indexes/index-options.ts#L8)
27
28***
29
30### name?
31
32```ts
33optional name: string;
34```
35
36Defined in: [packages/db/src/indexes/index-options.ts:7](https://github.com/TanStack/db/blob/main/packages/db/src/indexes/index-options.ts#L7)
37
38***
39
40### options?
41
42```ts
43optional 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;
44```
45
46Defined in: [packages/db/src/indexes/index-options.ts:9](https://github.com/TanStack/db/blob/main/packages/db/src/indexes/index-options.ts#L9)