aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/plugins/server-hook.model.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-07-22 15:40:13 +0200
committerChocobozzz <chocobozzz@cpy.re>2019-07-24 10:58:16 +0200
commit93cae47925e4dd68b7d34a41927b2740b4fab1b4 (patch)
treef649ab49fab1886b434e164591990cc99b234466 /shared/models/plugins/server-hook.model.ts
parent587568e1cc0e33c023c1ac62dd28fef313285250 (diff)
downloadPeerTube-93cae47925e4dd68b7d34a41927b2740b4fab1b4.tar.gz
PeerTube-93cae47925e4dd68b7d34a41927b2740b4fab1b4.tar.zst
PeerTube-93cae47925e4dd68b7d34a41927b2740b4fab1b4.zip
Add client hooks
Diffstat (limited to 'shared/models/plugins/server-hook.model.ts')
-rw-r--r--shared/models/plugins/server-hook.model.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/shared/models/plugins/server-hook.model.ts b/shared/models/plugins/server-hook.model.ts
index a7f88f3c4..6729e2dab 100644
--- a/shared/models/plugins/server-hook.model.ts
+++ b/shared/models/plugins/server-hook.model.ts
@@ -30,5 +30,5 @@ export type ServerActionHookName =
30export type ServerHookName = ServerFilterHookName | ServerActionHookName 30export type ServerHookName = ServerFilterHookName | ServerActionHookName
31 31
32export interface ServerHook { 32export interface ServerHook {
33 runHook (hookName: ServerHookName, params?: any) 33 runHook <T> (hookName: ServerHookName, result?: T, params?: any): Promise<T>
34} 34}