From c199c427d4ae586339822320f20f512a7a19dc3f Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 18 Oct 2018 14:35:31 +0200 Subject: Better typings --- shared/models/i18n/i18n.ts | 4 ++-- shared/models/overviews/videos-overview.ts | 1 - shared/models/server/custom-config.model.ts | 1 - shared/models/users/user.model.ts | 1 - 4 files changed, 2 insertions(+), 5 deletions(-) (limited to 'shared/models') 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 @@ export const LOCALE_FILES = [ 'player', 'server' ] -export const I18N_LOCALES: any = { +export const I18N_LOCALES = { 'en-US': 'English', 'fr-FR': 'Français', 'eu-ES': 'Euskara', @@ -17,7 +17,7 @@ export const I18N_LOCALES: any = { 'zh-Hans-CN': '简体中文(中国)' } -const I18N_LOCALE_ALIAS: any = { +const I18N_LOCALE_ALIAS = { 'en': 'en-US', 'fr': 'fr-FR', '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 { tag: string videos: Video[] }[] - [key: string]: any } 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 { '480p': boolean '720p': boolean '1080p': boolean - [key: string]: boolean } } 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 { blockedReason?: string videoQuotaUsed?: number - [key: string]: any } -- cgit v1.2.3