Skip to content

Commit

Permalink
refactor(editor): Type source control event bus
Browse files Browse the repository at this point in the history
Builds on top of #10367
  • Loading branch information
tomi committed Aug 19, 2024
1 parent aa4404e commit c9344c0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/editor-ui/src/event-bus/source-control.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
import type { EventBus } from 'n8n-design-system/utils';
import { createEventBus } from 'n8n-design-system/utils';

export const sourceControlEventBus = createEventBus();
export interface SourceControlEventBusEvents {
pull: never;
}

export type SourceControlEventBus = EventBus<SourceControlEventBusEvents>;

export const sourceControlEventBus = createEventBus<SourceControlEventBusEvents>();

0 comments on commit c9344c0

Please sign in to comment.