UNPKG

lml-main

Version:

This is now a mono repository published into many standalone packages.

22 lines (21 loc) 877 B
export declare const SUBSCRIBE_CHANNEL = "@@pusher/SUBSCRIBE_CHANNEL"; export declare const UNSUBSCRIBE_CHANNEL = "@@pusher/UNSUBSCRIBE_CHANNEL"; export interface BasePusherAction { channel: string; } /** * Dispatch this action to subscribe to a channel */ export interface PusherSubscribeChannelAction extends BasePusherAction { type: '@@pusher/SUBSCRIBE_CHANNEL'; events: string | string[]; callback: (message: any) => any; } /** * Dispatch this action to unsubscribe from a channel */ export interface PusherUnubscribeChannelAction extends BasePusherAction { type: '@@pusher/UNSUBSCRIBE_CHANNEL'; } export declare const pusherSubscribeChannel: (channel: string, events: string | string[], callback: (msg: any) => any) => PusherSubscribeChannelAction; export declare const pusherUnsubscribeChannel: (channel: string) => PusherUnubscribeChannelAction;