From 0f535a5c8081170b87bc237265647f6c0f1eaf0b Mon Sep 17 00:00:00 2001 From: none Date: Mon, 3 Apr 2023 14:54:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96types=E5=A3=B0=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/types/index.d.ts | 8 ++++++++ src/types/index.ts | 4 ---- src/utils/index.ts | 1 - 3 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 src/types/index.d.ts delete mode 100644 src/types/index.ts diff --git a/src/types/index.d.ts b/src/types/index.d.ts new file mode 100644 index 0000000..adc297e --- /dev/null +++ b/src/types/index.d.ts @@ -0,0 +1,8 @@ +declare global { + interface VideoParseInfo { + poster: string; + duration: number; + } +} + +export {} \ No newline at end of file diff --git a/src/types/index.ts b/src/types/index.ts deleted file mode 100644 index 7f6dc48..0000000 --- a/src/types/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -export interface VideoParseInfo { - poster:string; - duration:number; -} \ No newline at end of file diff --git a/src/utils/index.ts b/src/utils/index.ts index 5e85120..42aaba3 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -1,5 +1,4 @@ import moment from "moment"; -import { VideoParseInfo } from "../types"; export function getToken(): string { return window.localStorage.getItem("playedu-backend-token") || "";