UNPKG

@helenejs/react

Version:

Real-time Web Apps for Node.js

8 lines (7 loc) 359 B
export type UseEventParams = { event: string; channel?: string; active?: boolean; }; export declare function useLocalEvent({ event, channel }: UseEventParams, fn: (...args: any[]) => void, deps?: any[]): void; export declare function useRemoteEvent({ event, channel, active }: UseEventParams, fn: (...args: any[]) => void, deps?: any[]): boolean;