Interface FetchOptionsBeta

Options for fetching data from an API.

interface FetchOptions {
    body?: null | object | BodyInit;
    endpoint: string;
}

Hierarchy (view full)

Properties

Properties

body?: null | object | BodyInit

A BodyInit object, object or null to set request's body.

endpoint: string

The API endpoint to hit, starting with a slash.