Suppress type error (for now)

From what I see it should be correct.
This commit is contained in:
Jannis Mattheis 2019-09-28 16:55:22 +02:00
parent 4b1996534c
commit 3c55a1d884
1 changed files with 2 additions and 1 deletions

View File

@ -27,7 +27,8 @@ export const inject = <I extends AllStores>(...stores: I[]) => {
return <P extends {}>(
node: React.ComponentType<P>
): React.ComponentType<Pick<P, Exclude<keyof P, I>>> => {
return mobxInject(...stores)(node);
// tslint:disable-next-line:no-any
return mobxInject(...stores)(node) as any;
};
};