aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/typings/plugins
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-04-30 08:46:40 +0200
committerChocobozzz <chocobozzz@cpy.re>2020-05-04 16:21:39 +0200
commit5a7eecdd56120bc29b47ab071c8b8cd16efa3843 (patch)
tree5e7d5b4bf95abeccde12252d7927d3847c925569 /server/typings/plugins
parentebefc902f59be6c5542c19ff706e310d9dddf75f (diff)
downloadPeerTube-5a7eecdd56120bc29b47ab071c8b8cd16efa3843.tar.gz
PeerTube-5a7eecdd56120bc29b47ab071c8b8cd16efa3843.tar.zst
PeerTube-5a7eecdd56120bc29b47ab071c8b8cd16efa3843.zip
Add config helper for plugins
Diffstat (limited to 'server/typings/plugins')
-rw-r--r--server/typings/plugins/register-server-option.model.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/typings/plugins/register-server-option.model.ts b/server/typings/plugins/register-server-option.model.ts
index bcabf2fec..c1e63316d 100644
--- a/server/typings/plugins/register-server-option.model.ts
+++ b/server/typings/plugins/register-server-option.model.ts
@@ -25,6 +25,10 @@ export type PeerTubeHelpers = {
25 videos: { 25 videos: {
26 removeVideo: (videoId: number) => Promise<void> 26 removeVideo: (videoId: number) => Promise<void>
27 } 27 }
28
29 config: {
30 getWebserverUrl: () => string
31 }
28} 32}
29 33
30export type RegisterServerOptions = { 34export type RegisterServerOptions = {