refactor(editor): Add types to htmlEditorEventBus (no-changelog) (#10498)

This commit is contained in:
Tomi Turtiainen 2024-08-22 09:31:57 +03:00 committed by GitHub
parent 7bf25ea505
commit 8ab7fea32c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,3 +1,8 @@
import { createEventBus } from 'n8n-design-system/utils'; 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<HtmlEditorEventBusEvents>();