From 8ab7fea32cf41301ee061d1f388dbcd1066258a2 Mon Sep 17 00:00:00 2001 From: Tomi Turtiainen <10324676+tomi@users.noreply.github.com> Date: Thu, 22 Aug 2024 09:31:57 +0300 Subject: [PATCH] refactor(editor): Add types to htmlEditorEventBus (no-changelog) (#10498) --- packages/editor-ui/src/event-bus/html-editor.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/editor-ui/src/event-bus/html-editor.ts b/packages/editor-ui/src/event-bus/html-editor.ts index 7a53bf86a4..e40e7dd16c 100644 --- a/packages/editor-ui/src/event-bus/html-editor.ts +++ b/packages/editor-ui/src/event-bus/html-editor.ts @@ -1,3 +1,8 @@ import { createEventBus } from 'n8n-design-system/utils'; -export const htmlEditorEventBus = createEventBus(); +export interface HtmlEditorEventBusEvents { + /** Command to format the content in the HtmlEditor */ + 'format-html': never; +} + +export const htmlEditorEventBus = createEventBus();