Files
directus/src/types/express.d.ts
2020-06-30 14:45:54 -04:00

18 lines
267 B
TypeScript

/**
* Custom properties on the req object in express
*/
export {};
declare global {
namespace Express {
export interface Request {
token?: string;
user?: string;
role?: string;
collection?: string;
sanitizedQuery?: Record<string, any>;
}
}
}