mirror of
https://github.com/microsoft/TypeScript-Node-Starter.git
synced 2026-03-22 17:39:43 +00:00
15 lines
275 B
TypeScript
15 lines
275 B
TypeScript
|
|
/// <reference types="express" />
|
|
|
|
// Add RequestValidation Interface on to Express's Request Interface.
|
|
declare namespace Express {
|
|
interface Request extends Flash {}
|
|
}
|
|
|
|
interface Flash {
|
|
flash(type: string, message: any): void;
|
|
}
|
|
|
|
declare module "express-flash";
|
|
|