Type alias: BeforeSetRequestHandler<TUserId, TGridId>

type BeforeSetRequestHandler<TUserId, TGridId>: (request, body) => Promise<Request>;

Description

Callback type to change the Requestopen in new window 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 parameterDescription
TUserIdThe type of the user identifier.
TGridIdThe type of the grid identifier.

Parameters

ParameterType
requestRequestopen in new window
bodySetGridStateRequest<TUserId, TGridId>

Returns

Promiseopen in new window<Requestopen in new window>