Refactoring again

This commit is contained in:
2020-04-03 12:32:50 +03:00
parent f45f9c88ae
commit a5b82459c9
7 changed files with 15 additions and 12 deletions

View File

@ -4,6 +4,7 @@ import { Scheduler } from '../Scheduler';
const taskMap: { [name: string]: Function | undefined } = {};
export function registerTask(constructor: Function) {
console.log('REGISTER TASK', constructor.name);
taskMap[constructor.name] = constructor;
}