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

Default parameter value support #59

Merged
merged 4 commits into from
Nov 23, 2017
Merged

Default parameter value support #59

merged 4 commits into from
Nov 23, 2017

Conversation

jeffijoe
Copy link
Owner

This PR adds support for default parameters. When a parameter has no registration in the container, if it has a default value then Awilix will return undefined, causing the JS runtime to use the default value.

Closes #46

@jeffijoe jeffijoe self-assigned this Nov 23, 2017
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 79c7995 on feat-default-params into a213dab on v3.

@jeffijoe jeffijoe merged commit 3a0d802 into v3 Nov 23, 2017
@jeffijoe jeffijoe deleted the feat-default-params branch November 23, 2017 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants