UNPKG

@shared-state/react

Version:

This package provides a series of APIs for using Shared State via React

4 lines (3 loc) 409 B
import { ComponentType } from "react"; import { DerivedSharedStateGetter } from "@shared-state/core"; export declare function connectSharedState<T extends Record<string, any>, Ref = unknown>(getProps: DerivedSharedStateGetter<T>): <Props>(WrappedComponent: ComponentType<Props & T>) => import("react").ForwardRefExoticComponent<import("react").PropsWithoutRef<Props> & import("react").RefAttributes<Ref>>;