import { Request } from "express"
interface IRequestMonth {
user: string;
month: string;
year?: string;
}
getMonth(@Req() req: Request): Object {
const dataReq: Object = { ...req.params, ...req.query };
const {user, month, year} = dataReq <--- Вот в этой строчке
}
const dataReq = {...req.params, ...req.query} as {user: string, month: number, year: number};