hedgedoc/lib/library-ext.d.ts
Yannick Bungers f628b85c05
Added flash function to Request interface
Signed-off-by: Yannick Bungers <git@innay.de>
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:14 +02:00

9 lines
157 B
TypeScript

import { User } from './models'
declare module 'express' {
export interface Request {
user?: User;
flash (type: string, msg: string): any;
}
}