Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Register instance dependency #392

Open
hugosenari opened this issue Nov 14, 2019 · 0 comments
Open

Register instance dependency #392

hugosenari opened this issue Nov 14, 2019 · 0 comments

Comments

@hugosenari
Copy link
Contributor

hugosenari commented Nov 14, 2019

Is your feature request related to a problem? Please describe.

When I need to register a instance dependency, the current Laconia API is asking me to write a function, which lead to a verbose code and more code to test since coverage warn that I need test for required function.

exports.handler = laconia(kinesis(app))
  .register('logger', () => console.log);

Describe the solution you'd like [optional]

exports.handler = laconia(kinesis(app))
  .register({ logger: console.log });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant