UNPKG

@lomray/microservice-gateway

Version:
10 lines (9 loc) 352 B
import { RequestHandler, Request } from 'express-serve-static-core'; interface IUserInfoParams { handleUserInfo?: (userInfo: Record<string, any> | undefined, req: Request) => void; } /** * Collect and attach user info to headers */ declare const userInfo: ({ handleUserInfo }?: IUserInfoParams) => RequestHandler; export { userInfo as default };