ts: modern syntax for type import
Signed-off-by: Varun Patil <varunpatil@ucla.edu>pull/563/head
parent
189e529fc2
commit
4de6a6aded
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue