IndexResolver

Type Alias: IndexResolver<TKey>

ts
type IndexResolver<TKey> = 
  | IndexConstructor<TKey>
| () => Promise<IndexConstructor<TKey>>;
type IndexResolver<TKey> = 
  | IndexConstructor<TKey>
| () => Promise<IndexConstructor<TKey>>;

Defined in: packages/db/src/indexes/base-index.ts:117

Index resolver can be either a class constructor or async loader

Type Parameters

TKey extends string | number = string | number

Subscribe to Bytes

Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.

Bytes

No spam. Unsubscribe at any time.