mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-17 12:16:38 +08:00
23 lines
670 B
TypeScript
23 lines
670 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/borisyankov/DefinitelyTyped
|
|
|
|
/// <reference path="../express/express.d.ts" />
|
|
|
|
declare module 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;
|
|
}
|