mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 20:54:07 -08:00
refactor(editor): Add types to htmlEditorEventBus (no-changelog) (#10498)
This commit is contained in:
parent
7bf25ea505
commit
8ab7fea32c
|
@ -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>();
|
||||||
|
|
Loading…
Reference in a new issue