UNPKG

easy-express-cwa

Version:

CLI tool to setup a common Express.js backend developed by codewithashim

20 lines (17 loc) 339 B
import { JwtPayload } from 'jsonwebtoken'; import { Request } from 'express'; declare global { namespace Express { interface Request { id?: string; email?: string; user: JwtPayload | null; } } } declare module 'express-serve-static-core' { interface Request { id?: string; email?: string; } }