diff options
author | Chocobozzz <me@florianbigard.com> | 2019-07-05 13:54:32 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2019-07-24 10:58:16 +0200 |
commit | 345da516fae80f24c90c2196e96393b489af2243 (patch) | |
tree | 64d72d25a531626c1d4a6337460dae4e32386f2a /server/typings/express.ts | |
parent | 297067399db2bf7505561d67667ca0d559a8e42b (diff) | |
download | PeerTube-345da516fae80f24c90c2196e96393b489af2243.tar.gz PeerTube-345da516fae80f24c90c2196e96393b489af2243.tar.zst PeerTube-345da516fae80f24c90c2196e96393b489af2243.zip |
WIP plugins: add ability to register plugins
Diffstat (limited to 'server/typings/express.ts')
-rw-r--r-- | server/typings/express.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/typings/express.ts b/server/typings/express.ts index 324d78662..aec10b606 100644 --- a/server/typings/express.ts +++ b/server/typings/express.ts | |||
@@ -20,9 +20,11 @@ import { VideoAbuseModel } from '../models/video/video-abuse' | |||
20 | import { VideoBlacklistModel } from '../models/video/video-blacklist' | 20 | import { VideoBlacklistModel } from '../models/video/video-blacklist' |
21 | import { VideoCaptionModel } from '../models/video/video-caption' | 21 | import { VideoCaptionModel } from '../models/video/video-caption' |
22 | import { VideoStreamingPlaylistModel } from '../models/video/video-streaming-playlist' | 22 | import { VideoStreamingPlaylistModel } from '../models/video/video-streaming-playlist' |
23 | import { RegisteredPlugin } from '../lib/plugins/plugin-manager' | ||
23 | 24 | ||
24 | declare module 'express' { | 25 | declare module 'express' { |
25 | 26 | ||
27 | |||
26 | interface Response { | 28 | interface Response { |
27 | locals: { | 29 | locals: { |
28 | video?: VideoModel | 30 | video?: VideoModel |
@@ -77,6 +79,8 @@ declare module 'express' { | |||
77 | } | 79 | } |
78 | 80 | ||
79 | authenticated?: boolean | 81 | authenticated?: boolean |
82 | |||
83 | registeredPlugin?: RegisteredPlugin | ||
80 | } | 84 | } |
81 | } | 85 | } |
82 | } | 86 | } |