aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-10-18 14:35:31 +0200
committerChocobozzz <me@florianbigard.com>2018-10-18 14:35:31 +0200
commitc199c427d4ae586339822320f20f512a7a19dc3f (patch)
tree9cbe8bebc25e97d2e8086c41bcd7180dd752dbac /shared
parentcdf4cb9eaf5f6bc71f7c1e1963c07575f1d2593d (diff)
downloadPeerTube-c199c427d4ae586339822320f20f512a7a19dc3f.tar.gz
PeerTube-c199c427d4ae586339822320f20f512a7a19dc3f.tar.zst
PeerTube-c199c427d4ae586339822320f20f512a7a19dc3f.zip
Better typings
Diffstat (limited to 'shared')
-rw-r--r--shared/models/i18n/i18n.ts4
-rw-r--r--shared/models/overviews/videos-overview.ts1
-rw-r--r--shared/models/server/custom-config.model.ts1
-rw-r--r--shared/models/users/user.model.ts1
4 files changed, 2 insertions, 5 deletions
diff --git a/shared/models/i18n/i18n.ts b/shared/models/i18n/i18n.ts
index 9278c043b..5c3249452 100644
--- a/shared/models/i18n/i18n.ts
+++ b/shared/models/i18n/i18n.ts
@@ -1,6 +1,6 @@
1export const LOCALE_FILES = [ 'player', 'server' ] 1export const LOCALE_FILES = [ 'player', 'server' ]
2 2
3export const I18N_LOCALES: any = { 3export const I18N_LOCALES = {
4 'en-US': 'English', 4 'en-US': 'English',
5 'fr-FR': 'Français', 5 'fr-FR': 'Français',
6 'eu-ES': 'Euskara', 6 'eu-ES': 'Euskara',
@@ -17,7 +17,7 @@ export const I18N_LOCALES: any = {
17 'zh-Hans-CN': '简体中文(中国)' 17 'zh-Hans-CN': '简体中文(中国)'
18} 18}
19 19
20const I18N_LOCALE_ALIAS: any = { 20const I18N_LOCALE_ALIAS = {
21 'en': 'en-US', 21 'en': 'en-US',
22 'fr': 'fr-FR', 22 'fr': 'fr-FR',
23 'eu': 'eu-ES', 23 'eu': 'eu-ES',
diff --git a/shared/models/overviews/videos-overview.ts b/shared/models/overviews/videos-overview.ts
index 8c8785763..ee009d94c 100644
--- a/shared/models/overviews/videos-overview.ts
+++ b/shared/models/overviews/videos-overview.ts
@@ -15,5 +15,4 @@ export interface VideosOverview {
15 tag: string 15 tag: string
16 videos: Video[] 16 videos: Video[]
17 }[] 17 }[]
18 [key: string]: any
19} 18}
diff --git a/shared/models/server/custom-config.model.ts b/shared/models/server/custom-config.model.ts
index c5156d9f3..3afd36fcd 100644
--- a/shared/models/server/custom-config.model.ts
+++ b/shared/models/server/custom-config.model.ts
@@ -55,7 +55,6 @@ export interface CustomConfig {
55 '480p': boolean 55 '480p': boolean
56 '720p': boolean 56 '720p': boolean
57 '1080p': boolean 57 '1080p': boolean
58 [key: string]: boolean
59 } 58 }
60 } 59 }
61 60
diff --git a/shared/models/users/user.model.ts b/shared/models/users/user.model.ts
index 06a660206..8147dc48e 100644
--- a/shared/models/users/user.model.ts
+++ b/shared/models/users/user.model.ts
@@ -20,5 +20,4 @@ export interface User {
20 blockedReason?: string 20 blockedReason?: string
21 21
22 videoQuotaUsed?: number 22 videoQuotaUsed?: number
23 [key: string]: any
24} 23}