diff --git a/src/public/app/components/app_context.ts b/src/public/app/components/app_context.ts index f32cf51c4..ad6b70a1c 100644 --- a/src/public/app/components/app_context.ts +++ b/src/public/app/components/app_context.ts @@ -24,7 +24,7 @@ import type NoteTreeWidget from "../widgets/note_tree.js"; import type { default as NoteContext, GetTextEditorCallback } from "./note_context.js"; import type TypeWidget from "../widgets/type_widgets/type_widget.js"; import type EditableTextTypeWidget from "../widgets/type_widgets/editable_text.js"; -import type { NativeImage } from "electron"; +import type { NativeImage, TouchBar } from "electron"; interface Layout { getRootWidget: (appContext: AppContext) => RootWidget; @@ -270,7 +270,7 @@ export type CommandMappings = { geoMapCreateChildNote: CommandData; buildTouchBar: CommandData & { - TouchBar: typeof import("electron").TouchBar; + TouchBar: typeof TouchBar; buildIcon(name: string): NativeImage; }; refreshTouchBar: CommandData; diff --git a/src/public/app/widgets/type_widgets/editable_code.ts b/src/public/app/widgets/type_widgets/editable_code.ts index 0f2c0d31e..49bcde3f1 100644 --- a/src/public/app/widgets/type_widgets/editable_code.ts +++ b/src/public/app/widgets/type_widgets/editable_code.ts @@ -1,4 +1,3 @@ -import { app } from "electron"; import type { CommandListenerData, EventData } from "../../components/app_context.js"; import type FNote from "../../entities/fnote.js"; import { t } from "../../services/i18n.js";