UNPKG

unleash-server

Version:

Unleash is an enterprise ready feature toggles service. It provides different strategies for handling feature toggles.

13 lines (12 loc) 484 B
/// <reference types="express-serve-static-core" /> /// <reference types="express-session" /> import { Request } from 'express'; import User from '../types/user'; export interface IAuthRequest<PARAM = any, ResBody = any, ReqBody = any, ReqQuery = any> extends Request<PARAM, ResBody, ReqBody, ReqQuery> { user: User; logout: (() => void) | ((callback: (err?: any) => void) => void); session: any; } export interface RequestBody<T> extends Express.Request { body: T; }