26 lines
455 B
TypeScript
26 lines
455 B
TypeScript
export type FileType = 'file' | 'directory';
|
|
|
|
export type BreadcrumbData = {
|
|
name: string;
|
|
href: string;
|
|
};
|
|
|
|
export type DirectoryEntry = {
|
|
name: string;
|
|
fileType: FileType;
|
|
mimeType: string | null;
|
|
/// Timestamp in seconds
|
|
createdAt: number | null;
|
|
};
|
|
|
|
export type UploadStatus =
|
|
| 'not_uploaded'
|
|
| 'uploading'
|
|
| 'completed'
|
|
| 'failed';
|
|
|
|
export type UploadFile = {
|
|
status: UploadStatus;
|
|
data: File;
|
|
};
|