web/front/types/UploadType.ts
import { UserType } from 'front/types/UserType'
/* Directory listing entry */
export interface UploadEntryType {
path: string;
list: boolean;
};
export interface UploadType extends UploadEntryType {
bytes: string;
contentType: string;
createdAt: string;
hash: string;
size: number;
updatedAt: string;
};
export interface UploadIndexType extends Pick<UploadType, 'path' | 'contentType' | 'size' | 'createdAt' | 'updatedAt' | 'list'> {
author: Pick<UserType, 'displayName' | 'effectiveImage' | 'score' | 'username'> | null;
url: string | null;
previewUrl: string | null;
}