Directus / @directus/sdk / rest / withOptions
Function: withOptions() ​
withOptions<
Schema
,Output
>(getOptions
,extraOptions
):RestCommand
<Output
,Schema
>
Defined in: rest/helpers/with-options.ts:12
Add arbitrary options to a fetch request
Type Parameters ​
• Schema
• Output
Parameters ​
getOptions ​
RestCommand
<Output
, Schema
>
extraOptions ​
RequestTransformer
| Partial
<RequestInit
>
Returns ​
RestCommand
<Output
, Schema
>