mirror of
https://github.com/PlayEdu/backend
synced 2025-10-27 03:41:23 +08:00
优化types声明
This commit is contained in:
8
src/types/index.d.ts
vendored
Normal file
8
src/types/index.d.ts
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
declare global {
|
||||
interface VideoParseInfo {
|
||||
poster: string;
|
||||
duration: number;
|
||||
}
|
||||
}
|
||||
|
||||
export {}
|
||||
@@ -1,4 +0,0 @@
|
||||
export interface VideoParseInfo {
|
||||
poster:string;
|
||||
duration:number;
|
||||
}
|
||||
@@ -1,5 +1,4 @@
|
||||
import moment from "moment";
|
||||
import { VideoParseInfo } from "../types";
|
||||
|
||||
export function getToken(): string {
|
||||
return window.localStorage.getItem("playedu-backend-token") || "";
|
||||
|
||||
Reference in New Issue
Block a user