This commit is contained in:
2024-02-25 08:27:01 +08:00
commit 20c1fa08dc
279 changed files with 78489 additions and 0 deletions

31
src/types/index.ts Normal file
View File

@@ -0,0 +1,31 @@
export interface CloudreveFile {
id: string;
name: string;
size: number;
date: string;
create_date: string;
path: string;
type: "up" | "file" | "dir";
source_enabled?: boolean;
}
export type SortMethod =
| "sizePos"
| "sizeRes"
| "namePos"
| "nameRev"
| "timePos"
| "timeRev"
| "modifyTimePos"
| "modifyTimeRev";
export enum BatchDownloadMethod {
ClientStream,
ServerArchive,
}
declare global {
interface Window {
baseConfig?: (f: (response: any, e: any) => any) => any;
}
}