fix: missing express type annotation

This commit is contained in:
wancat committed 2024-03-28 21:28:18 +08:00
1 parent 432084cc66
commit eb106c020a
6 files changed
+22 -9

No files matched your search

@@ -1,9 +1,11 @@
/* eslint-disable object-shorthand */
import type { Request, Response } from 'express'
import Pagination from '../models/pagination.js'
import { errorCommands } from '../models/commands.js'
// eslint-disable-next-line import/prefer-default-export
export async function commandListController(req: any, res: any): Promise<void> {
export async function commandListController(
req: Request,
res: Response
): Promise<void> {
const { nextKey, order } = req.query as { nextKey?: string; order: string }
const itemsPerPage = 100