global: fix type errors during build

This commit is contained in:
Ammar Ahmed
2024-02-03 12:35:28 +05:00
committed by Abdullah Atta
parent 2bb3652be2
commit 4e157455c8
8 changed files with 490 additions and 416 deletions

View File

@@ -138,7 +138,7 @@ export function useEditorController(update: () => void): EditorController {
}, [colors]);
const contentChange = useCallback(
(editor: Editor, ignoreEdit) => {
(editor: Editor, ignoreEdit?: boolean) => {
const currentSessionId = globalThis.sessionId;
post(EventTypes.contentchange);
if (!editor) return;