Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore: Add override for methods
Tony Narlockd104feb697be
diff --git a/src/mathcommand.ts b/src/mathcommand.tsindex 644da0b963..5a8dbbe9f7 100644--- a/src/mathcommand.ts+++ b/src/mathcommand.ts@@ -2,8 +2,8 @@ import { Command } from 'ckeditor5/src/core';import { getSelectedMathModelWidget } from './utils';export default class MathCommand extends Command {- public value: string | null = null;- public execute(+ public override value: string | null = null;+ public override execute(equation: string,display?: boolean,outputType: 'script' | 'span' = 'script',@@ -45,7 +45,7 @@ export default class MathCommand extends Command {public display = false;- public refresh(): void {+ public override refresh(): void {const model = this.editor.model;const selection = model.document.selection;const selectedElement = selection.getSelectedElement();diff --git a/src/mathui.ts b/src/mathui.tsindex 92bc290b24..12a9b27763 100644--- a/src/mathui.ts+++ b/src/mathui.ts@@ -38,7 +38,7 @@ export default class MathUI extends Plugin {this._enableUserBalloonInteractions();}- public destroy(): void {+ public override destroy(): void {super.destroy();this.formView?.destroy();diff --git a/src/ui/mainformview.ts b/src/ui/mainformview.tsindex 0af0e8ab8c..dc4897868f 100644--- a/src/ui/mainformview.ts+++ b/src/ui/mainformview.ts@@ -37,7 +37,7 @@ export default class MainFormView extends View {public previewEnabled: boolean;public previewLabel?: LabelView;public mathView?: MathView;- public locale: Locale = new Locale();+ public override locale: Locale = new Locale();public lazyLoad: undefined | ( () => Promise<void> );constructor(@@ -127,7 +127,7 @@ export default class MainFormView extends View {} );}- public render(): void {+ public override render(): void {super.render();// Prevent default form submit event & trigger custom 'submit'diff --git a/src/ui/mathview.ts b/src/ui/mathview.tsindex ac8c3a5747..5ee587d164 100644--- a/src/ui/mathview.ts+++ b/src/ui/mathview.ts@@ -73,7 +73,7 @@ export default class MathView extends View {}}- public render(): void {+ public override render(): void {super.render();this.updateMath();}