UNPKG

@multisynq/react

Version:

React bindings for Multisynq

17 lines (16 loc) 838 B
import { MultisynqReactSessionParameters } from '../createMultisynqSession'; import { ReactModel } from '../ReactModel'; export interface ReactSessionParameters<M extends ReactModel> extends Omit<MultisynqReactSessionParameters<M>, 'name'> { name?: string; password?: string; } interface MultisynqRootProps<M extends ReactModel> { sessionParams: ReactSessionParameters<M>; children: React.ReactElement | React.ReactElement[] | null; showChildrenWithoutSession?: boolean; deferSession?: boolean; } /** MultisynqRoot component implements the default implementation of the logic described for createMultisynqSession function. */ export declare function MultisynqRoot<M extends ReactModel>({ sessionParams, children, showChildrenWithoutSession, deferSession, }: MultisynqRootProps<M>): JSX.Element | null; export {};