📜  “请求”类型上不存在属性“isAuth”<ParamsDictionary, any, any, ParsedQs> &#39; - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:26.258000             🧑  作者: Mango

代码示例1
// create file custom.d.ts and declare the following

declare namespace Express {
  export interface Request {
      user: any;
  }
  export interface Response {
      user: any;
  }
}