mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
fix(build): errors after refactoring
This commit is contained in:
parent
2c5fb7edee
commit
d3b55932a6
@ -9,6 +9,7 @@ import hoistedNoteService from "../services/hoisted_note.js";
|
|||||||
import options from "../services/options.js";
|
import options from "../services/options.js";
|
||||||
import type { ViewScope } from "../services/link.js";
|
import type { ViewScope } from "../services/link.js";
|
||||||
import type FNote from "../entities/fnote.js";
|
import type FNote from "../entities/fnote.js";
|
||||||
|
import type TypeWidget from "../widgets/type_widgets/type_widget.js";
|
||||||
|
|
||||||
interface SetNoteOpts {
|
interface SetNoteOpts {
|
||||||
triggerSwitchEvent?: unknown;
|
triggerSwitchEvent?: unknown;
|
||||||
@ -341,7 +342,7 @@ class NoteContext extends Component implements EventListener<"entitiesReloaded">
|
|||||||
|
|
||||||
async getTypeWidget() {
|
async getTypeWidget() {
|
||||||
return this.timeout(
|
return this.timeout(
|
||||||
new Promise((resolve) =>
|
new Promise<TypeWidget | null>((resolve) =>
|
||||||
appContext.triggerCommand("executeWithTypeWidget", {
|
appContext.triggerCommand("executeWithTypeWidget", {
|
||||||
resolve,
|
resolve,
|
||||||
ntxId: this.ntxId
|
ntxId: this.ntxId
|
||||||
|
@ -36,7 +36,7 @@ function parseNoteMeta(noteMeta: NoteMeta, docNameRoot: string): HiddenSubtreeIt
|
|||||||
let iconClass: string = "bx bx-file";
|
let iconClass: string = "bx bx-file";
|
||||||
const item: HiddenSubtreeItem = {
|
const item: HiddenSubtreeItem = {
|
||||||
id: `_help_${noteMeta.noteId}`,
|
id: `_help_${noteMeta.noteId}`,
|
||||||
title: noteMeta.title,
|
title: noteMeta.title ?? "",
|
||||||
type: "doc", // can change
|
type: "doc", // can change
|
||||||
attributes: []
|
attributes: []
|
||||||
};
|
};
|
||||||
|
@ -8,10 +8,10 @@ export interface NoteMetaFile {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export default interface NoteMeta {
|
export default interface NoteMeta {
|
||||||
noteId: string;
|
noteId?: string;
|
||||||
notePath?: string[];
|
notePath?: string[];
|
||||||
isClone?: boolean;
|
isClone?: boolean;
|
||||||
title: string;
|
title?: string;
|
||||||
notePosition?: number;
|
notePosition?: number;
|
||||||
prefix?: string | null;
|
prefix?: string | null;
|
||||||
isExpanded?: boolean;
|
isExpanded?: boolean;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user