UNPKG

@o-galaxy/ether

Version:

Rest Api Framework

6 lines (5 loc) 227 B
export declare type GuardFn = (req: any, res: any) => (boolean | Promise<boolean>); import { Response, Request } from 'express'; export interface IGuard { guard(req: Request, res: Response): (boolean | Promise<boolean>); }