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