Skip to content

Commit

Permalink
doc(resolvers): clarification for newInstance decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
doktordirk committed May 30, 2018
1 parent 5739152 commit 6f5ea5d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/resolvers.js
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,8 @@ export function factory(keyValue: any) {
}

/**
* Decorator: Specifies the dependency as a new instance
* Decorator: Specifies the dependency as a new instance. Instances can optionally be registered in the container
* under a different key and/or use dynamic dependencies
*/
export function newInstance(asKeyOrTarget?: any, ...dynamicDependencies: any[]) {
let deco = function(asKey?: any) {
Expand Down

0 comments on commit 6f5ea5d

Please sign in to comment.