Skip to content

@maxhealth.tech/prefab / actions / FetchOpts

Interface: FetchOpts

Defined in: actions/client.ts:143

Properties

method?

ts
optional method?: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";

Defined in: actions/client.ts:144


headers?

ts
optional headers?: Record<string, string>;

Defined in: actions/client.ts:145


body?

ts
optional body?: unknown;

Defined in: actions/client.ts:146


resultKey?

ts
optional resultKey?: string;

Defined in: actions/client.ts:147


onSuccess?

ts
optional onSuccess?: Action | Action[];

Defined in: actions/client.ts:148


onError?

ts
optional onError?: Action | Action[];

Defined in: actions/client.ts:149

Released under the MIT License.