first commit
This commit is contained in:
17
src/types/express.d.ts
vendored
Normal file
17
src/types/express.d.ts
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
import { Accountability, Query, SchemaOverview } from '@directus/types';
|
||||
|
||||
export {};
|
||||
|
||||
declare global {
|
||||
namespace Express {
|
||||
export interface Request {
|
||||
token: string | null;
|
||||
collection: string;
|
||||
sanitizedQuery: Query;
|
||||
schema: SchemaOverview;
|
||||
|
||||
accountability?: Accountability;
|
||||
singleton?: boolean;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user