问题1: express 库的类型定义文件 .d.ts 文件类型描述不准确import { Router, Request, Response } from 'express';interface RequestWithBody extends Request {body: {[key: string]: string | undefined;};}问题2: 当我使用中间件的时候,对req或者res做了修改之后,类型并不能改变// 类型融合declare namespace Express {interface Request {teacherName: string;}}// 拓展interface RequestWithBody extends Request {techerName: string}
