mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2024-12-11 08:57:11 +01:00
26 lines
502 B
TypeScript
26 lines
502 B
TypeScript
import { UserDirectoryList, User } from "./src/users";
|
|
|
|
declare global {
|
|
namespace Express {
|
|
export interface Request {
|
|
user: {
|
|
profile: User;
|
|
directories: UserDirectoryList;
|
|
};
|
|
}
|
|
}
|
|
|
|
/**
|
|
* The root directory for user data.
|
|
*/
|
|
var DATA_ROOT: string;
|
|
}
|
|
|
|
declare module 'express-session' {
|
|
export interface SessionData {
|
|
handle: string;
|
|
touch: number;
|
|
// other properties...
|
|
}
|
|
}
|