fix: add type annotations to Swagger middleware parameters
Fixes TypeScript build error TS7006 for implicit 'any' types on req, res, next.
This commit is contained in:
1 parent
888b399a4f
commit
d2f3335b1a
1 file changed
+1
-1
+1
-1
@@ -75,7 +75,7 @@ export const createApp = ({
|
||||
})
|
||||
);
|
||||
// Swagger UI — dynamically set server URL from request
|
||||
app.use("/api-docs", swaggerUi.serve, (req, res, next) => {
|
||||
app.use("/api-docs", swaggerUi.serve, (req: express.Request, res: express.Response, next: express.NextFunction) => {
|
||||
const protocol = req.protocol;
|
||||
const host = req.get("host");
|
||||
const dynamicSpec = {
|
||||
|
||||
Reference in new issue
Block a user