feat: spec to platform
This commit is contained in:
10
platform/relay/libraries/hooks.ts
Normal file
10
platform/relay/libraries/hooks.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
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;
|
||||
};
|
||||
Reference in New Issue
Block a user