mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-15 00:54:06 -08:00
14 lines
447 B
TypeScript
14 lines
447 B
TypeScript
import { createEventBus } from 'n8n-design-system/utils';
|
|
|
|
export type HighlightLineEvent = number | 'final';
|
|
|
|
export interface CodeNodeEditorEventBusEvents {
|
|
/** Event that a diff have been applied to the code node editor */
|
|
codeDiffApplied: never;
|
|
|
|
/** Command to highlight a specific line in the code node editor */
|
|
highlightLine: HighlightLineEvent;
|
|
}
|
|
|
|
export const codeNodeEditorEventBus = createEventBus<CodeNodeEditorEventBusEvents>();
|