# JsonLookupOptions (@salmonui/data/lookup)

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

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

```ts
import type { JsonLookupOptions } 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 JsonLookupOptions extends FetchTransportOptions {
    readonly name: string;
    readonly ttl?: number;
    readonly scheduler?: Scheduler;
}
```

Members (7):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `name` | `readonly name: string;` |  | Lookup name the server knows (`createJsonQueryHandler(rows, { lookups: { [name]: rows } })`). |
| `ttl` | `readonly ttl?: number;` | optional |  |
| `scheduler` | `readonly scheduler?: Scheduler;` | optional |  |
| `url` | `url: string;` | inherited |  |
| `fetch` | `fetch?: FetchLike;` | optional, inherited | Injected fetch. Defaults to `globalThis.fetch`, read lazily per request. |
| `headers` | `headers?: Readonly<Record<string, string>> \| (() => Readonly<Record<string, string>>);` | optional, inherited |  |
| `requestInit` | `requestInit?: Omit<FetchRequestInit, "body" \| "headers" \| "method" \| "signal">;` | optional, inherited |  |
