# FetchTransportOptions (@salmonui/data/json)

> The FetchTransportOptions interface of @salmonui/data/json.

Canonical: https://salmonui.dev/docs/reference/data/json/FetchTransportOptions

```ts
import type { FetchTransportOptions } from '@salmonui/data/json';
```

Also exported from `@salmonui/data`.

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

## Reference

Kind: interface

```ts
interface FetchTransportOptions {
    readonly url: string;
    readonly fetch?: FetchLike;
    readonly headers?: Readonly<Record<string, string>> | (() => Readonly<Record<string, string>>);
    readonly requestInit?: Omit<FetchRequestInit, 'method' | 'body' | 'signal' | 'headers'>;
}
```

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `url` | `readonly url: string;` |  |  |
| `fetch` | `readonly fetch?: FetchLike;` | optional | Injected fetch. Defaults to `globalThis.fetch`, read lazily per request. |
| `headers` | `readonly headers?: Readonly<Record<string, string>> \| (() => Readonly<Record<string, string>>);` | optional |  |
| `requestInit` | `readonly requestInit?: Omit<FetchRequestInit, 'method' \| 'body' \| 'signal' \| 'headers'>;` | optional |  |
