# FetchRequestInit (@salmonui/data)

> The FetchRequestInit interface of @salmonui/data.

Canonical: https://salmonui.dev/docs/reference/data/FetchRequestInit

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

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

## Reference

Kind: interface

```ts
interface FetchRequestInit {
    readonly method?: string;
    readonly headers?: Readonly<Record<string, string>>;
    readonly body?: string;
    readonly signal?: typeof globalThis extends {
        readonly AbortSignal: {
            readonly prototype: infer S;
        };
    } ? S : AbortSignalLike;
    readonly credentials?: 'omit' | 'same-origin' | 'include';
    readonly [key: string]: unknown;
}
```

Members (5):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `method` | `readonly method?: string;` | optional |  |
| `headers` | `readonly headers?: Readonly<Record<string, string>>;` | optional |  |
| `body` | `readonly body?: string;` | optional |  |
| `signal` | `readonly signal?: typeof globalThis extends {     readonly AbortSignal: {         readonly prototype: infer S;     }; } ? S : AbortSignalLike;` | optional | The request's abort signal: the platform `AbortSignal` wherever the consumer's lib declares one (the Data Grid engine uses the platform `AbortController` whenever the runtime has it), else `AbortSignalLike`. |
| `credentials` | `readonly credentials?: 'omit' \| 'same-origin' \| 'include';` | optional |  |
