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(ckeditor5-math): fix references: DowncastWriter -> ViewDowncastWriter
Elian Doranbe33f68c52a7
diff --git a/packages/ckeditor5-math/src/mathediting.ts b/packages/ckeditor5-math/src/mathediting.tsindex 465aac2e76..bd026829cb 100644--- a/packages/ckeditor5-math/src/mathediting.ts+++ b/packages/ckeditor5-math/src/mathediting.ts@@ -1,5 +1,5 @@import MathCommand from './mathcommand.js';-import { type Editor, Plugin, toWidget, Widget, viewToModelPositionOutsideModelElement, type DowncastWriter, type ModelElement, CKEditorError, uid } from 'ckeditor5';+import { type Editor, Plugin, toWidget, Widget, viewToModelPositionOutsideModelElement, type ViewDowncastWriter, type ModelElement, CKEditorError, uid } from 'ckeditor5';import { renderEquation, extractDelimiters } from './utils.js';export default class MathEditing extends Plugin {@@ -212,7 +212,7 @@ export default class MathEditing extends Plugin {// Create view for editorfunction createMathtexEditingView(modelItem: ModelElement,- writer: DowncastWriter+ writer: ViewDowncastWriter) {const equation = String( modelItem.getAttribute( 'equation' ) );const display = !!modelItem.getAttribute( 'display' );@@ -262,7 +262,7 @@ export default class MathEditing extends Plugin {// Create view for datafunction createMathtexView(modelItem: ModelElement,- { writer }: { writer: DowncastWriter }+ { writer }: { writer: ViewDowncastWriter }) {const equation = modelItem.getAttribute( 'equation' );if ( typeof equation != 'string' ) {