Files
gongnotes/src/lib/editor.ts
2026-03-20 16:56:03 +01:00

26 lines
430 B
TypeScript

export type Note = {
id: string;
title: string;
content: string;
color: string;
date: Date;
images: ImageAttachment[];
files: FileAttachment[];
};
export type ImageAttachment = NoteAttachment & { kind: "image" };
export type FileAttachment = NoteAttachment & { kind: "file" };
interface NoteAttachment {
id: string;
name: string;
size: number;
mimeType: string;
previewUrl?: string;
}