mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-16 21:58:39 -09:00
Fix ts error
This commit is contained in:
parent
3dd4f83f41
commit
a86c9c215e
1 changed files with 3 additions and 1 deletions
|
|
@ -64,7 +64,9 @@ let reducersDecorators: {
|
||||||
};
|
};
|
||||||
|
|
||||||
// expose decorated component instance to the higher-order components
|
// 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> {
|
return class DecoratedComponent extends React.Component<P> {
|
||||||
constructor(props: P, context: any) {
|
constructor(props: P, context: any) {
|
||||||
super(props, context);
|
super(props, context);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue