aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models
diff options
context:
space:
mode:
authorBO41 <lukasw41@gmail.com>2018-10-18 09:08:59 +0200
committerRigel Kent <par@rigelk.eu>2018-10-18 09:08:59 +0200
commit244b4ae3973bc1511464a08158a123767f83179c (patch)
tree24f4399489167bc92921e3fe0c1c04a87d7c1161 /shared/models
parent28e51e831bd121f063600a597d7b02f8fd846de9 (diff)
downloadPeerTube-244b4ae3973bc1511464a08158a123767f83179c.tar.gz
PeerTube-244b4ae3973bc1511464a08158a123767f83179c.tar.zst
PeerTube-244b4ae3973bc1511464a08158a123767f83179c.zip
NoImplicitAny flag true (#1157)
this enables the `noImplicitAny` flag in the Typescript compiler > When the noImplicitAny flag is true and the TypeScript compiler cannot infer the type, it still generates the JavaScript files, but it also reports an error. Many seasoned developers prefer this stricter setting because type checking catches more unintentional errors at compile time. closes: #1131 replaces #1137
Diffstat (limited to 'shared/models')
-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, 5 insertions, 2 deletions
diff --git a/shared/models/i18n/i18n.ts b/shared/models/i18n/i18n.ts
index 5c3249452..9278c043b 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 = { 3export const I18N_LOCALES: any = {
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 = {
17 'zh-Hans-CN': '简体中文(中国)' 17 'zh-Hans-CN': '简体中文(中国)'
18} 18}
19 19
20const I18N_LOCALE_ALIAS = { 20const I18N_LOCALE_ALIAS: any = {
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 ee009d94c..8c8785763 100644
--- a/shared/models/overviews/videos-overview.ts
+++ b/shared/models/overviews/videos-overview.ts
@@ -15,4 +15,5 @@ export interface VideosOverview {
15 tag: string 15 tag: string
16 videos: Video[] 16 videos: Video[]
17 }[] 17 }[]
18 [key: string]: any
18} 19}
diff --git a/shared/models/server/custom-config.model.ts b/shared/models/server/custom-config.model.ts
index 3afd36fcd..c5156d9f3 100644
--- a/shared/models/server/custom-config.model.ts
+++ b/shared/models/server/custom-config.model.ts
@@ -55,6 +55,7 @@ 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
58 } 59 }
59 } 60 }
60 61
diff --git a/shared/models/users/user.model.ts b/shared/models/users/user.model.ts
index 8147dc48e..06a660206 100644
--- a/shared/models/users/user.model.ts
+++ b/shared/models/users/user.model.ts
@@ -20,4 +20,5 @@ export interface User {
20 blockedReason?: string 20 blockedReason?: string
21 21
22 videoQuotaUsed?: number 22 videoQuotaUsed?: number
23 [key: string]: any
23} 24}