2024-04-06 19:09:39 +02:00
|
|
|
import { UserDirectoryList, User } from "./src/users";
|
|
|
|
|
|
|
|
declare global {
|
|
|
|
namespace Express {
|
|
|
|
export interface Request {
|
|
|
|
user: {
|
|
|
|
profile: User;
|
|
|
|
directories: UserDirectoryList;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
2024-08-16 13:59:41 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The root directory for user data.
|
|
|
|
*/
|
|
|
|
var DATA_ROOT: string;
|
2024-04-06 19:09:39 +02:00
|
|
|
}
|
2024-04-07 18:12:22 +02:00
|
|
|
|
|
|
|
declare module 'express-session' {
|
|
|
|
export interface SessionData {
|
|
|
|
handle: string;
|
2024-04-13 18:12:50 +02:00
|
|
|
touch: number;
|
2024-04-07 18:12:22 +02:00
|
|
|
// other properties...
|
|
|
|
}
|
|
|
|
}
|