Skip to content
This repository was archived by the owner on Feb 21, 2020. It is now read-only.
This repository was archived by the owner on Feb 21, 2020. It is now read-only.

Behavior of injector.partial(fn)() and injector.apply(fn) should be the same when an annotation is unavailable. #16

@groner

Description

@groner

Currently injector.apply(fn) doesn't tolerate missing services even if the target function has a default for the given argument or a value was provided by the caller. However, in this case the behavior of injector.partial(fn)() is often more desired. That is, if a value is provided by the caller or a function default, that can be used, and if no value is available the TypeError that results from calling a function with the wrong errors is informative enough.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions