mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-16 17:44:09 -08: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();
|