Fix ts error

This commit is contained in:
Labhansh Agrawal 2020-05-29 09:30:52 +05:30 committed by Benjamin Staneck
parent 3dd4f83f41
commit a86c9c215e

View file

@ -64,7 +64,9 @@ let reducersDecorators: {
};
// expose decorated component instance to the higher-order components
function exposeDecorated<P extends any>(Component_: React.ComponentType<P>): React.ComponentClass<P, {}> {
function exposeDecorated<P extends Record<string, any>>(
Component_: React.ComponentType<P>
): React.ComponentClass<P, {}> {
return class DecoratedComponent extends React.Component<P> {
constructor(props: P, context: any) {
super(props, context);