@rtcio/react
Version:
A wrapper around the @rtcio/core library for React integration
3 lines • 330 B
TypeScript
import { RTCInternalEvents, VoidMethods } from "@rtcio/core";
export declare function createUseRtcListener<TEvents extends VoidMethods<TEvents> = Record<string, never>>(): <TKey extends keyof RTCInternalEvents<TEvents>>(event: TKey, callback: RTCInternalEvents<TEvents>[TKey]) => void;
//# sourceMappingURL=useRtcListener.d.ts.map