diff --git a/client/src/assets/player/shared/stats/stats-card.ts b/client/src/assets/player/shared/stats/stats-card.ts index 6c16c6449..efdfb145b 100644 --- a/client/src/assets/player/shared/stats/stats-card.ts +++ b/client/src/assets/player/shared/stats/stats-card.ts @@ -372,5 +372,5 @@ videojs.registerComponent('StatsCard', StatsCard) export { StatsCard, - StatsCardOptions + type StatsCardOptions } diff --git a/client/src/root-helpers/plugins-manager.ts b/client/src/root-helpers/plugins-manager.ts index c00230b54..01d23c3e3 100644 --- a/client/src/root-helpers/plugins-manager.ts +++ b/client/src/root-helpers/plugins-manager.ts @@ -299,10 +299,10 @@ class PluginsManager { export { PluginsManager, - PluginInfo, - PeertubeHelpersFactory, - OnFormFields, - OnSettingsScripts + type PluginInfo, + type PeertubeHelpersFactory, + type OnFormFields, + type OnSettingsScripts } // --------------------------------------------------------------------------- diff --git a/client/src/standalone/videos/shared/translations.ts b/client/src/standalone/videos/shared/translations.ts index 146732495..f4668c27b 100644 --- a/client/src/standalone/videos/shared/translations.ts +++ b/client/src/standalone/videos/shared/translations.ts @@ -1,5 +1 @@ -type Translations = { [ id: string ]: string } - -export { - Translations -} +export type Translations = { [ id: string ]: string } diff --git a/client/tsconfig.json b/client/tsconfig.json index 7df82ec1c..a1afdd2b0 100644 --- a/client/tsconfig.json +++ b/client/tsconfig.json @@ -15,6 +15,7 @@ "importHelpers": true, "strictBindCallApply": true, "target": "ES2022", + "isolatedModules": true, "typeRoots": [ "node_modules/@types" ],