UNPKG

sipp

Version:

An Opinionated, High-Productivity MVC Web Framework in TypeScript

15 lines (14 loc) 482 B
import session from 'express-session'; import { Request } from 'express'; export declare class Session { private readonly req; readonly session: session.SessionData; constructor(req: Request); has(key: string): boolean; get<T>(key: string, defaultValue?: T): T | undefined; set<T>(key: string, value: T): void; flash(key: string, msg: any): number; getFlash(key: string): string[]; reflash(key: string): string[]; destroy(): Promise<void>; }