Repository URL to install this package:
|
Version:
2.0.0 ▾
|
import { ComponentClass } from 'react';
export declare type ComponentWithUpdateState<PropTypes> = ComponentClass<PropTypes> & {
/**
* @todo is required but decorator is not nice with this
*/
updateState?: () => void;
};
export declare const toComponentName: (Target: ComponentClass<{}, any>) => string;
export declare const updatingRegistry: WeakSet<object>;
/**
* @IDEA: can I get properties that were passed into that type as generic out? props
* @alias updateForProps
*/
export declare function observerWithObservableProps<PropTypes>(Target: ComponentWithUpdateState<PropTypes>): ComponentWithUpdateState<PropTypes>;