Template
1
0
Files
boilerplate/platform/relay/libraries/hooks.ts
2025-09-19 18:58:02 +02:00

11 lines
324 B
TypeScript

export type Hooks = {
/**
* Executes when any error is thrown before or during the lifetime
* of the route. This allows for custom handling of errors if the
* route has unique requirements to error handling.
*
* @param error - Error which has been thrown.
*/
onError?: (error: unknown) => Response;
};