mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Update `TypeScript Version`s to be at least as high as dependencies' versions * Run through again
25 lines
734 B
TypeScript
25 lines
734 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
|
|
// TypeScript Version: 2.2
|
|
|
|
/// <reference types="express" />
|
|
|
|
declare namespace Express {
|
|
export interface Request {
|
|
flash(): { [key: string]: string[] };
|
|
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;
|
|
}
|