jorum
Version:
Model layer with rx.js for React applications.
14 lines (13 loc) • 497 B
TypeScript
import * as React from 'react';
import { ConstructorType } from '../bloc';
import { FC } from 'react';
export interface ProviderProps<T> {
of: ConstructorType<T>;
args?: any[];
}
declare type Props<T> = ProviderProps<T> & {
children: React.ReactNode;
};
export declare const Provider: FC<Props<any>>;
export declare function withProvider<P, T = any>(providerProps: ((props: P) => ProviderProps<T>) | ProviderProps<T>): (C: React.ComponentType<P>) => React.ComponentType<P>;
export {};