funfunautomator icon indicating copy to clipboard operation
funfunautomator copied to clipboard

Instead of naming deps, shall we expand that as object

Open arvind2894 opened this issue 6 years ago • 0 comments

Example

module.exports = function(deps) {
  return function() {
    deps.query(...)
  };
}

Instead can we go with

module.exports = function({ query }) {
  return function() {
    query(...)
  };
}

This will also explain that what were all the dependencies injected in the factory function

@mpj Kindly let me know if this is a valid concern or not. Thanks

arvind2894 avatar Oct 21 '19 08:10 arvind2894