UNPKG

@unito/integration-sdk

Version:

Integration SDK

12 lines (11 loc) 353 B
import { Request, Response, NextFunction } from 'express'; import { Error as ApiError } from '@unito/integration-api'; declare global { namespace Express { interface Locals { error?: ApiError; } } } declare function onError(err: Error, _req: Request, res: Response, next: NextFunction): void; export default onError;