diff options
Diffstat (limited to 'client/src/types')
-rw-r--r-- | client/src/types/client-script.model.ts | 7 | ||||
-rw-r--r-- | client/src/types/register-client-option.model.ts | 9 |
2 files changed, 16 insertions, 0 deletions
diff --git a/client/src/types/client-script.model.ts b/client/src/types/client-script.model.ts new file mode 100644 index 000000000..6197fcac9 --- /dev/null +++ b/client/src/types/client-script.model.ts | |||
@@ -0,0 +1,7 @@ | |||
1 | import { RegisterClientOptions } from './register-client-option.model' | ||
2 | |||
3 | export interface ClientScript { | ||
4 | register: (options: RegisterClientOptions) => Promise<any> | ||
5 | |||
6 | unregister: () => Promise<any> | ||
7 | } | ||
diff --git a/client/src/types/register-client-option.model.ts b/client/src/types/register-client-option.model.ts new file mode 100644 index 000000000..42d689403 --- /dev/null +++ b/client/src/types/register-client-option.model.ts | |||
@@ -0,0 +1,9 @@ | |||
1 | import { RegisterClientHookOptions } from '@shared/models/plugins/register-client-hook.model' | ||
2 | |||
3 | export type RegisterClientOptions = { | ||
4 | registerHook: (options: RegisterClientHookOptions) => void | ||
5 | |||
6 | peertubeHelpers: { | ||
7 | getBaseStaticRoute: () => string | ||
8 | } | ||
9 | } | ||