@feqra/voucher-pool-common
Version:
Common library used to handle common errors for a voucher pool system generation.
15 lines (14 loc) • 462 B
TypeScript
import { Request, Response, NextFunction } from 'express';
interface UserPayload {
id: string;
email: string;
}
declare global {
namespace Express {
interface Request {
currentUser?: UserPayload;
}
}
}
export declare const currentUser: (req: Request<import("express-serve-static-core").ParamsDictionary, any, any, import("express-serve-static-core").Query>, res: Response<any>, next: NextFunction) => void;
export {};