aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/typings
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-07-22 11:15:17 +0200
committerChocobozzz <me@florianbigard.com>2021-07-22 11:48:24 +0200
commit20bafcb61bee2a9a10a500908850c9a7d5e3c8c5 (patch)
tree18d0e8eb693b0fce88b21b282ea6f28836763fe6 /server/typings
parent13e13377918b65c30b9334920fef4b43e70b964e (diff)
downloadPeerTube-20bafcb61bee2a9a10a500908850c9a7d5e3c8c5.tar.gz
PeerTube-20bafcb61bee2a9a10a500908850c9a7d5e3c8c5.tar.zst
PeerTube-20bafcb61bee2a9a10a500908850c9a7d5e3c8c5.zip
Move apicache in peertube
Allow us to upgrade to node 16
Diffstat (limited to 'server/typings')
-rw-r--r--server/typings/express/index.d.ts11
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
2import { OutgoingHttpHeaders } from 'http'
2import { RegisterServerAuthExternalOptions } from '@server/types' 3import { RegisterServerAuthExternalOptions } from '@server/types'
3import { 4import {
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'
44import { Writable } from 'stream'
43 45
44declare module 'express' { 46declare 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