From 4de6a6adedc9c742128d4d22b5e8b8bae93f9885 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Wed, 12 Apr 2023 07:45:56 -0700 Subject: [PATCH] ts: modern syntax for type import Signed-off-by: Varun Patil --- src/main.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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; }