Type alias: BeforeSetRequestHandler<TUserId, TGridId>
type BeforeSetRequestHandler<TUserId, TGridId>: (request, body) => Promise<Request>;
Description
Callback type to change the Request object before it is sent to the server from the built-in server side storage service. This is useful when you need to map the SetGridStateRequest to a different data contract or alter the HTTP verb/headers.
Type parameters
Type parameter | Description |
---|---|
TUserId | The type of the user identifier. |
TGridId | The type of the grid identifier. |
Parameters
Parameter | Type |
---|---|
request | Request |
body | SetGridStateRequest <TUserId , TGridId > |