dbaas
Version:
Database as a service. Expose db to REST and GraphQL.
17 lines (16 loc) • 440 B
TypeScript
/**
* Custom properties on the req object in express
*/
import { Accountability, SchemaOverview, Query } from "@directus/shared/types";
declare global {
namespace Express {
interface Request {
token: string | null;
collection: string;
sanitizedQuery: Query;
schema: SchemaOverview;
accountability?: Accountability;
singleton?: boolean;
}
}
}