@jcm/use-pusher
Version:
Fork of harelpls/use-pusher with the latest changes on master
11 lines (10 loc) • 551 B
TypeScript
import React from "react";
import { PusherContextValues, PusherProviderProps } from "./types";
export declare const __PusherContext: React.Context<PusherContextValues>;
/**
* Provider that creates your pusher instance and provides it to child hooks throughout your app.
* Note, you can pass in value={{}} as a prop if you'd like to override the pusher client passed.
* This is handy when simulating pusher locally, or for testing.
* @param props Config for Pusher client
*/
export declare const CorePusherProvider: React.FC<PusherProviderProps>;