silly / index.d.ts
周泳恩
添加core文件压缩和解压功能,保留用户自定义config.yaml
314a0ac
raw
history blame contribute delete
837 Bytes
import { UserDirectoryList, User } from "./src/users";
import { CsrfSyncedToken } from "csrf-sync";
declare global {
declare namespace CookieSessionInterfaces {
export interface CookieSessionObject {
/**
* The CSRF token for the session.
*/
csrfToken: CsrfSyncedToken;
/**
* Authenticated user handle.
*/
handle: string;
/**
* Last time the session was extended.
*/
touch: number;
}
}
namespace Express {
export interface Request {
user: {
profile: User;
directories: UserDirectoryList;
};
}
}
/**
* The root directory for user data.
*/
var DATA_ROOT: string;
}