init commit
This commit is contained in:
25
src/lib/editor.ts
Normal file
25
src/lib/editor.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user