Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function inject(
stores: {[key in K]: Store},
): any {
const merged = createStoreObject(stores);
const Consumer = createStoreConsumer(merged);
return (
Cmp: React.ComponentType,
) => (props: Props & {[key in K]: typeof stores[key]}) => (
{state => }
);
}