X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftypes%2Fexpress.d.ts;h=27e532c313b4dd161cf38e4d044891e5c2170eac;hb=64324ac646b0938e35cd88771492623b640bd0d8;hp=91a8cf3d88e99ad9e8835c4fde6691620c80b00d;hpb=c729caf6cc34630877a0e5a1bda1719384cd0c8a;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/types/express.d.ts b/server/types/express.d.ts index 91a8cf3d8..27e532c31 100644 --- a/server/types/express.d.ts +++ b/server/types/express.d.ts @@ -42,6 +42,7 @@ import { MVideoThumbnail } from './models' import { Writable } from 'stream' +import { MVideoSource } from './models/video/video-source' declare module 'express' { export interface Request { @@ -68,7 +69,7 @@ declare module 'express' { } | UploadFileForCheck[] // Upload file with a duration added by our middleware - export type VideoUploadFile = Pick & { + export type VideoUploadFile = Pick & { duration: number } @@ -85,6 +86,7 @@ declare module 'express' { duration: number path: string filename: string + originalname: string } // Extends Response with added functions and potential variables passed by middlewares @@ -119,9 +121,12 @@ declare module 'express' { videoId?: MVideoId videoLive?: MVideoLive + videoLiveSession?: MVideoLiveSession videoShare?: MVideoShareActor + videoSource?: MVideoSource + videoFile?: MVideoFile videoFileResumable?: EnhancedUploadXFile @@ -185,6 +190,8 @@ declare module 'express' { externalAuth?: RegisterServerAuthExternalOptions plugin?: MPlugin + + localViewerFull?: MLocalVideoViewerWithWatchSections } } }