UNPKG

@helenejs/react

Version:

Real-time Web Apps for Node.js

9 lines (8 loc) 285 B
import { AnyFunction } from '@helenejs/utils'; type UseSubscribeParams = { event: string; channel?: string; active?: boolean; }; export declare function useSubscribe({ event, channel, active }: UseSubscribeParams, callback?: AnyFunction, deps?: any[]): boolean; export {};