mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
express-flash just implements connenct-flash so there is no need to define anything beside the single RequestHandler function that it exports.
13 lines
217 B
TypeScript
13 lines
217 B
TypeScript
import express = require('express');
|
|
import flash = require('express-flash');
|
|
|
|
const app = express();
|
|
|
|
app.use(flash());
|
|
|
|
app.use((req) => {
|
|
req.flash();
|
|
req.flash('message');
|
|
req.flash('event', 'message');
|
|
});
|