Skip to content

griddy-sdk


griddy-sdk / AfterSuccessHook

Interface: AfterSuccessHook

Defined in: src/griddy/nfl/_hooks/types.ts:72

Hook called after a successful response.

Methods

afterSuccess()

afterSuccess(ctx, response): Response | Promise\<Response>

Defined in: src/griddy/nfl/_hooks/types.ts:79

Called after a successful response is received.

Parameters

ctx

AfterSuccessContext

The hook context

response

Response

The response received

Returns

Response | Promise\<Response>

Modified response or an error to throw