@e280/quay
Version:
File-browser and outliner UI for the web
22 lines (21 loc) • 536 B
TypeScript
import { Content } from "@e280/sly";
import { AsSchema } from "../../aspects/codex/parts/types.js";
export type MediaFormat = "video" | "image" | "audio" | "other";
export type MediaSchema = AsSchema<{
taxon: {
icon: Content;
};
specimens: {
folder: {
label: string;
};
file: {
label: string;
format: MediaFormat;
previewUrl: string | null;
hash?: string;
mime?: string;
size?: number;
};
};
}>;