mirror of
https://github.com/microsoft/TypeScript-Node-Starter.git
synced 2026-03-29 00:21:16 +00:00
initial commit
This commit is contained in:
14
src/types/express-flash.d.ts
vendored
Normal file
14
src/types/express-flash.d.ts
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
|
||||
/// <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";
|
||||
|
||||
Reference in New Issue
Block a user