# LookupOptions (@salmonui/data/lookup)

> The LookupOptions interface of @salmonui/data/lookup.

Canonical: https://salmonui.dev/docs/reference/data/lookup/LookupOptions

```ts
import type { LookupOptions } from '@salmonui/data/lookup';
```

Also exported from `@salmonui/data`.

Entry index: https://salmonui.dev/docs/reference/data/lookup (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/data/lookup.md).

## Reference

Kind: interface

```ts
interface LookupOptions {
    load(request: LookupRequest): readonly unknown[] | Promise<readonly unknown[]>;
    readonly keyField?: string;
    readonly ttl?: number;
    readonly scheduler?: Scheduler;
}
```

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `load` | `load(request: LookupRequest): readonly unknown[] \| Promise<readonly unknown[]>;` |  | Loads the rows of `keys` (only keys not cached). May return extra rows; they are cached too. |
| `keyField` | `readonly keyField?: string;` | optional | Field of the returned rows holding the looked-up value. Default: the request's `keyField`. Dot paths allowed. |
| `ttl` | `readonly ttl?: number;` | optional | Entry lifetime in ms. Default: never expires. |
| `scheduler` | `readonly scheduler?: Scheduler;` | optional |  |
