diff options
author | Chocobozzz <me@florianbigard.com> | 2020-04-30 08:46:40 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-05-04 16:21:39 +0200 |
commit | 5a7eecdd56120bc29b47ab071c8b8cd16efa3843 (patch) | |
tree | 5e7d5b4bf95abeccde12252d7927d3847c925569 /server/typings | |
parent | ebefc902f59be6c5542c19ff706e310d9dddf75f (diff) | |
download | PeerTube-5a7eecdd56120bc29b47ab071c8b8cd16efa3843.tar.gz PeerTube-5a7eecdd56120bc29b47ab071c8b8cd16efa3843.tar.zst PeerTube-5a7eecdd56120bc29b47ab071c8b8cd16efa3843.zip |
Add config helper for plugins
Diffstat (limited to 'server/typings')
-rw-r--r-- | server/typings/plugins/register-server-option.model.ts | 4 |
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 | ||
30 | export type RegisterServerOptions = { | 34 | export type RegisterServerOptions = { |