Files
n8n-enterprise-unlocked/packages/design-system/src/utils/form-event-bus.ts
Tomi Turtiainen b2e0f33959 refactor(editor): Add typed event bus (no-changelog) (#10367)
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
2024-08-13 15:11:28 +03:00

13 lines
320 B
TypeScript

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>;