Notes/src/services/meta/note_meta.ts

26 lines
696 B
TypeScript
Raw Normal View History

2024-02-19 23:08:43 +02:00
import AttachmentMeta = require("./attachment_meta");
2024-02-17 21:01:31 +02:00
import AttributeMeta = require("./attribute_meta");
interface NoteMeta {
2024-02-19 23:08:43 +02:00
noteId?: string;
notePath?: string[];
isClone?: boolean;
title?: string;
notePosition?: number;
prefix?: string | null;
isExpanded?: boolean;
type?: string;
mime?: string;
2024-02-17 21:01:31 +02:00
/** 'html' or 'markdown', applicable to text notes only */
2024-02-19 23:08:43 +02:00
format?: "html" | "markdown";
2024-02-17 21:01:31 +02:00
dataFileName: string;
2024-02-19 23:08:43 +02:00
dirFileName?: string;
2024-02-17 21:01:31 +02:00
/** this file should not be imported (e.g., HTML navigation) */
2024-02-19 23:08:43 +02:00
noImport?: boolean;
attributes?: AttributeMeta[];
attachments?: AttachmentMeta[];
2024-02-17 21:01:31 +02:00
children?: NoteMeta[];
}
export = NoteMeta;