mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
16 lines
349 B
TypeScript
16 lines
349 B
TypeScript
import EventEmitter from 'events';
|
|
|
|
interface EventTypes {
|
|
nodeFetchedData: string;
|
|
workflowExecutionCompleted: string;
|
|
}
|
|
|
|
class N8NEventEmitter extends EventEmitter {
|
|
types: EventTypes = {
|
|
nodeFetchedData: 'nodeFetchedData',
|
|
workflowExecutionCompleted: 'workflowExecutionCompleted',
|
|
};
|
|
}
|
|
|
|
export const eventEmitter = new N8NEventEmitter();
|