refactor(react/dialogs): deduplicate data types

This commit is contained in:
Elian Doran
2025-08-06 17:10:18 +03:00
parent 7a0f148d28
commit 0af5feab79
5 changed files with 20 additions and 24 deletions

View File

@@ -1,4 +1,4 @@
import { AttributeRow } from "./rows.js";
import { AttributeRow, NoteType } from "./rows.js";
export interface AppInfo {
appVersion: string;
@@ -17,3 +17,14 @@ export interface DeleteNotesPreview {
noteIdsToBeDeleted: string[];
brokenRelations: AttributeRow[];
}
export interface RevisionItem {
noteId: string;
revisionId?: string;
dateLastEdited?: string;
contentLength?: number;
type: NoteType;
title: string;
isProtected?: boolean;
mime: string;
}