CreateApiClientOptions
Defined in: src/ui/api-client.ts:53
Options for createApiClient.
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
base? |
string |
Initial base URL; "" (relative to the page) by default. |
src/ui/api-client.ts:57 |
credentials? |
RequestCredentials |
Initial credentials mode; "same-origin" by default. |
src/ui/api-client.ts:59 |
errorClass? |
ApiErrorConstructor |
The error class to throw for non-2xx responses (the product’s …ApiError). |
src/ui/api-client.ts:55 |
fetch? |
FetchLike |
Initial fetch implementation; the global fetch by default (read at call time). |
src/ui/api-client.ts:61 |