From 20bafcb61bee2a9a10a500908850c9a7d5e3c8c5 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 22 Jul 2021 11:15:17 +0200 Subject: Move apicache in peertube Allow us to upgrade to node 16 --- server/typings/express/index.d.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'server/typings/express') 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 @@ +import { OutgoingHttpHeaders } from 'http' import { RegisterServerAuthExternalOptions } from '@server/types' import { MAbuseMessage, @@ -40,6 +41,7 @@ import { MVideoShareActor, MVideoThumbnail } from '../../types/models' +import { Writable } from 'stream' declare module 'express' { export interface Request { @@ -98,6 +100,15 @@ declare module 'express' { }) => void locals: { + apicache: { + content: string | Buffer + write: Writable['write'] + writeHead: Response['writeHead'] + end: Response['end'] + cacheable: boolean + headers: OutgoingHttpHeaders + } + docUrl?: string videoAPI?: MVideoFormattableDetails -- cgit v1.2.3