express-flash just implements connenct-flash so there is no need to define anything beside the single RequestHandler function that it exports.