diff options
author | Chocobozzz <me@florianbigard.com> | 2019-07-08 15:54:08 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2019-07-24 10:58:16 +0200 |
commit | 18a6f04c071f7a0735eb39b8c67fd51a082d1a31 (patch) | |
tree | b9fb0637878390d32b5c73d02b8eee2ef48cbfa5 /shared/models/plugins | |
parent | 2c0539420d77339e6afe8d7920b44af4c0dcb1e6 (diff) | |
download | PeerTube-18a6f04c071f7a0735eb39b8c67fd51a082d1a31.tar.gz PeerTube-18a6f04c071f7a0735eb39b8c67fd51a082d1a31.tar.zst PeerTube-18a6f04c071f7a0735eb39b8c67fd51a082d1a31.zip |
WIP plugins: hook on client side
Diffstat (limited to 'shared/models/plugins')
-rw-r--r-- | shared/models/plugins/plugin-scope.type.ts | 1 | ||||
-rw-r--r-- | shared/models/plugins/register.model.ts | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/shared/models/plugins/plugin-scope.type.ts b/shared/models/plugins/plugin-scope.type.ts new file mode 100644 index 000000000..b63ae43ec --- /dev/null +++ b/shared/models/plugins/plugin-scope.type.ts | |||
@@ -0,0 +1 @@ | |||
export type PluginScope = 'common' | 'video-watch' | |||
diff --git a/shared/models/plugins/register.model.ts b/shared/models/plugins/register.model.ts index 3817007ae..0ed2157bd 100644 --- a/shared/models/plugins/register.model.ts +++ b/shared/models/plugins/register.model.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | export type RegisterHookOptions = { | 1 | export interface RegisterHookOptions { |
2 | target: string | 2 | target: string |
3 | handler: Function | 3 | handler: Function |
4 | priority?: number | 4 | priority?: number |