fix: fix pool.addTaskFunction() type definition