UNPKG

reshuffle

Version:

Reshuffle is a fast, unopinionated, minimalist integration framework

9 lines (8 loc) 420 B
import { BaseConnector, EventConfiguration } from 'reshuffle-base-connector'; export interface CustomEventConnectorEventOptions { channel: string; } export default class CustomEventConnector extends BaseConnector<null, CustomEventConnectorEventOptions> { on(options: CustomEventConnectorEventOptions, handler: any, eventId?: string): EventConfiguration; fire(channel: string, payload: any): Promise<void>; }