mirror of
https://github.com/PlayEdu/backend
synced 2025-06-06 15:34:08 +08:00
优化types声明
This commit is contained in:
parent
b15766ea33
commit
0f535a5c80
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") || "";
|
||||
|
Loading…
x
Reference in New Issue
Block a user