You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ass/common/global.d.ts

40 lines
547 B

import { BusBoyFile } from 'ass';
import { Request, Response } from 'express';
declare module 'express-session' {
interface SessionData {
ass: {
auth?: {
uid: string;
token: string;
}
preLoginPath?: string;
}
}
}
declare global {
1 year ago
namespace Express {
interface Request {
1 year ago
/**
* ass-specific request items
*/
ass: {
1 year ago
/**
* Combination of {protocol}://{hostname}
*/
host: string
/**
* ass version
*/
version: string
1 year ago
}
files: { [key: string]: BusBoyFile }
1 year ago
}
}
}