ts: modern syntax for type import

Signed-off-by: Varun Patil <varunpatil@ucla.edu>
pull/563/head
Varun Patil 2023-04-12 07:45:56 -07:00
parent 189e529fc2
commit 4de6a6aded
1 changed files with 5 additions and 2 deletions

View File

@ -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;
}