mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
refactor(editor): Add typed event bus (no-changelog) (#10367)
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
12
packages/design-system/src/utils/form-event-bus.ts
Normal file
12
packages/design-system/src/utils/form-event-bus.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { createEventBus } from './event-bus';
|
||||
|
||||
export interface FormEventBusEvents {
|
||||
submit: never;
|
||||
}
|
||||
|
||||
export type FormEventBus = ReturnType<typeof createFormEventBus>;
|
||||
|
||||
/**
|
||||
* Creates a new event bus to be used with the `FormInputs` component.
|
||||
*/
|
||||
export const createFormEventBus = createEventBus<FormEventBusEvents>;
|
||||
Reference in New Issue
Block a user