n8n/packages/cli/src/sse-channel.d.ts

18 lines
410 B
TypeScript
Raw Normal View History

import type { PushRequest, PushResponse } from './push/types';
declare module 'sse-channel' {
declare class Channel {
constructor();
on(event: string, handler: (channel: string, res: PushResponse) => void): void;
removeClient: (res: PushResponse) => void;
addClient: (req: PushRequest, res: PushResponse) => void;
send: (msg: string, clients?: PushResponse[]) => void;
}
export = Channel;
}