Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Object.entries(props.activities).forEach(([t, init]) => {
const type = t as ValidStateKeys;
progressChannel.subscribe(type, reporter(type));
init();
});