@multisynq/react-together
Version:
A library to seamlessly add real-time multi-user interaction to your React app!
21 lines (19 loc) • 645 B
TypeScript
import { default as ReactTogetherModel } from '../models/ReactTogetherModel';
type ReactTogetherSessionParams<D> = {
apiKey: string;
appId: string;
name?: string;
password?: string;
model?: typeof ReactTogetherModel;
viewData?: D;
};
export type ReactTogetherProps<D = undefined> = {
children: ReactChildren;
sessionParams: ReactTogetherSessionParams<D>;
sessionIgnoresUrl?: boolean;
userId?: string;
};
export default function ReactTogether<D>({ children, sessionParams, sessionIgnoresUrl, userId }: ReactTogetherProps<D & {
userId?: string;
}>): import("react/jsx-runtime").JSX.Element;
export {};