refactor: add strict type imports
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { ErrorRequestHandler } from "express";
|
||||
import type { ErrorRequestHandler } from "express";
|
||||
|
||||
const errorHandler: ErrorRequestHandler = (error, req, res, next) => {
|
||||
const status = error?.status || 500;
|
||||
|
||||
Reference in New Issue
Block a user