mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-15 09:04:07 -08:00
18 lines
377 B
TypeScript
18 lines
377 B
TypeScript
|
import type { Request, Response } from 'express';
|
||
|
|
||
|
declare module 'sse-channel' {
|
||
|
declare class Channel {
|
||
|
constructor();
|
||
|
|
||
|
on(event: string, handler: (channel: string, res: Response) => void): void;
|
||
|
|
||
|
removeClient: (res: Response) => void;
|
||
|
|
||
|
addClient: (req: Request, res: Response) => void;
|
||
|
|
||
|
send: (msg: string, clients?: Response[]) => void;
|
||
|
}
|
||
|
|
||
|
export = Channel;
|
||
|
}
|