aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
authorlutangar <johan.dufour@gmail.com>2022-01-20 12:07:15 +0100
committerChocobozzz <chocobozzz@cpy.re>2022-01-20 13:43:20 +0100
commitd2d4a5a999746ae0f01a2ce89b844252346bab27 (patch)
tree428c6b0767c78398ce093b4969f59c3b174ed7e4 /client/src
parent82b9a1005cd5f5d3c338270839a24f217594b35d (diff)
downloadPeerTube-d2d4a5a999746ae0f01a2ce89b844252346bab27.tar.gz
PeerTube-d2d4a5a999746ae0f01a2ce89b844252346bab27.tar.zst
PeerTube-d2d4a5a999746ae0f01a2ce89b844252346bab27.zip
Fix plugin settings manager definition
This mainly fix the `onSettingsChange` argument typing. I'm not 100% sure the setting `value` can be a boolean though. But this is how it was typed before so I just made it consistent. Feel free to change - or suggest change - to the type names / location.
Diffstat (limited to 'client/src')
-rw-r--r--client/src/types/register-client-option.model.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/types/register-client-option.model.ts b/client/src/types/register-client-option.model.ts
index 73f82e781..2460a7499 100644
--- a/client/src/types/register-client-option.model.ts
+++ b/client/src/types/register-client-option.model.ts
@@ -4,7 +4,7 @@ import {
4 RegisterClientRouteOptions, 4 RegisterClientRouteOptions,
5 RegisterClientSettingsScriptOptions, 5 RegisterClientSettingsScriptOptions,
6 RegisterClientVideoFieldOptions, 6 RegisterClientVideoFieldOptions,
7 ServerConfig 7 ServerConfig, SettingEntries
8} from '@shared/models' 8} from '@shared/models'
9 9
10export type RegisterClientOptions = { 10export type RegisterClientOptions = {
@@ -30,7 +30,7 @@ export type RegisterClientHelpers = {
30 30
31 getAuthHeader: () => { 'Authorization': string } | undefined 31 getAuthHeader: () => { 'Authorization': string } | undefined
32 32
33 getSettings: () => Promise<{ [ name: string ]: string }> 33 getSettings: () => Promise<SettingEntries>
34 34
35 getServerConfig: () => Promise<ServerConfig> 35 getServerConfig: () => Promise<ServerConfig>
36 36