mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-08 03:20:12 +08:00
fix: missing express type annotation
This commit is contained in:
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
|
||||
|
||||
|
||||
Reference in new issue
Block a user