mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
refactor(react/dialogs): deduplicate data types
This commit is contained in:
@@ -28,10 +28,10 @@ export interface RevisionRow {
|
||||
title: string;
|
||||
blobId?: string;
|
||||
dateLastEdited?: string;
|
||||
dateCreated: string;
|
||||
dateCreated?: string;
|
||||
utcDateLastEdited?: string;
|
||||
utcDateCreated: string;
|
||||
utcDateModified: string;
|
||||
utcDateModified?: string;
|
||||
contentLength?: number;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user