Skip to content

Build your personal knowledge base with Trilium Notes

refactor: 💡 remove redundant code

Jinc4d2c2b8deff
diff --git a/src/public/app/widgets/dialogs/add_link.ts b/src/public/app/widgets/dialogs/add_link.ts
index 4d8f416f40..fff519a1e7 100644
--- a/src/public/app/widgets/dialogs/add_link.ts
+++ b/src/public/app/widgets/dialogs/add_link.ts
@@ -6,11 +6,6 @@ import BasicWidget from "../basic_widget.js";
import type { Suggestion } from "../../services/note_autocomplete.js";
import type { default as TextTypeWidget } from "../type_widgets/editable_text.js";
-interface NoteAutocompleteElement extends HTMLElement {
- getSelectedNotePath(): string | null;
- getSelectedExternalLink(): string | null;
-}
-
const TPL = `
<div class="add-link-dialog modal mx-auto" tabindex="-1" role="dialog">
<div class="modal-dialog modal-lg" style="max-width: 1000px" role="document">
@@ -64,7 +59,7 @@ const TPL = `
export default class AddLinkDialog extends BasicWidget {
private $form!: JQuery<HTMLElement>;
- private $autoComplete!: JQuery<NoteAutocompleteElement>;
+ private $autoComplete!: JQuery<HTMLElement>;
private $linkTitle!: JQuery<HTMLElement>;
private $addLinkTitleSettings!: JQuery<HTMLElement>;
private $addLinkTitleRadios!: JQuery<HTMLElement>;