diff --git a/src/main.ts b/src/main.ts index 105c1bd5..473fcde8 100644 --- a/src/main.ts +++ b/src/main.ts @@ -15,6 +15,9 @@ import { generateFilePath } from "@nextcloud/router"; import { getRequestToken } from "@nextcloud/auth"; import { IPhoto } from "./types"; +import type PlyrType from "plyr"; +import type videojsType from "video.js"; + import "./global.scss"; // Global exposed variables @@ -42,8 +45,8 @@ declare global { var __webpack_nonce__: string; var __webpack_public_path__: string; - var vidjs: typeof import("video.js").default; - var Plyr: typeof import("plyr"); + var vidjs: typeof videojsType; + var Plyr: typeof PlyrType; var videoClientId: string; var videoClientIdPersistent: string; }