refactor: add strict type imports

This commit is contained in:
Ritesh Ghosh
2023-11-22 13:43:04 +05:30
parent 29661350f0
commit 94dd071fe5
+1 -1
View File
@@ -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;