1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00
pigallery2/backend/middlewares/customtypings/ExtendedRequest.d.ts

29 lines
464 B
TypeScript
Raw Normal View History

2018-11-29 06:49:33 +08:00
import {LoginCredential} from '../../../common/entities/LoginCredential';
import {UserEntity} from '../../model/sql/enitites/UserEntity';
2016-05-09 23:04:56 +08:00
2018-11-29 06:49:33 +08:00
declare global {
namespace Express {
interface Request {
resultPipe?: any;
body?: {
loginCredential: LoginCredential
};
locale?: string;
}
interface Response {
tpl?: any;
}
interface Session {
user?: UserEntity;
rememberMe?: boolean;
}
2017-07-15 23:48:29 +08:00
}
}
2018-11-29 06:49:33 +08:00