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 extends object
• Output
Parameters
• getOptions: RestCommand
<Output
, Schema
>
• extraOptions: RequestTransformer
| Partial
<RequestInit
>
Returns
RestCommand
<Output
, Schema
>