Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Isolated modules to true in client

Chocobozzz9a6e68d505a9
diff --git a/client/src/assets/player/shared/stats/stats-card.ts b/client/src/assets/player/shared/stats/stats-card.ts
index 6c16c64498..efdfb145b3 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 c00230b540..01d23c3e37 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 146732495a..f4668c27bf 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 7df82ec1c6..a1afdd2b02 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"
],