Files
DefinitelyTyped/types/connect-flash/index.d.ts
2017-03-24 14:27:52 -07:00

23 lines
662 B
TypeScript

// Type definitions for connect-flash
// Project: https://github.com/jaredhanson/connect-flash
// Definitions by: Andreas Gassmann <https://github.com/AndreasGassmann/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="express" />
declare namespace Express {
export interface Request {
flash(message: string): any;
flash(event: string, message: string): any;
}
}
declare module "connect-flash" {
import express = require('express');
interface IConnectFlashOptions {
unsafe?: boolean;
}
function e(options?: IConnectFlashOptions): express.RequestHandler;
export = e;
}