diff options
Diffstat (limited to 'server/typings')
-rw-r--r-- | server/typings/express/index.d.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/server/typings/express/index.d.ts b/server/typings/express/index.d.ts index 5469f3b83..1a99b598a 100644 --- a/server/typings/express/index.d.ts +++ b/server/typings/express/index.d.ts | |||
@@ -1,4 +1,5 @@ | |||
1 | 1 | ||
2 | import { OutgoingHttpHeaders } from 'http' | ||
2 | import { RegisterServerAuthExternalOptions } from '@server/types' | 3 | import { RegisterServerAuthExternalOptions } from '@server/types' |
3 | import { | 4 | import { |
4 | MAbuseMessage, | 5 | MAbuseMessage, |
@@ -40,6 +41,7 @@ import { | |||
40 | MVideoShareActor, | 41 | MVideoShareActor, |
41 | MVideoThumbnail | 42 | MVideoThumbnail |
42 | } from '../../types/models' | 43 | } from '../../types/models' |
44 | import { Writable } from 'stream' | ||
43 | 45 | ||
44 | declare module 'express' { | 46 | declare module 'express' { |
45 | export interface Request { | 47 | export interface Request { |
@@ -98,6 +100,15 @@ declare module 'express' { | |||
98 | }) => void | 100 | }) => void |
99 | 101 | ||
100 | locals: { | 102 | locals: { |
103 | apicache: { | ||
104 | content: string | Buffer | ||
105 | write: Writable['write'] | ||
106 | writeHead: Response['writeHead'] | ||
107 | end: Response['end'] | ||
108 | cacheable: boolean | ||
109 | headers: OutgoingHttpHeaders | ||
110 | } | ||
111 | |||
101 | docUrl?: string | 112 | docUrl?: string |
102 | 113 | ||
103 | videoAPI?: MVideoFormattableDetails | 114 | videoAPI?: MVideoFormattableDetails |