diff --git a/src/invokers.js b/src/invokers.js index 2f773c4..afd3a96 100644 --- a/src/invokers.js +++ b/src/invokers.js @@ -13,7 +13,7 @@ export function invoker(value: Invoker): any { /** * Decorator: Specifies that the decorated item should be called as a factory function, rather than a constructor. */ -export function factory(potentialTarget?: any): any { +export function invokeAsFactory(potentialTarget?: any): any { let deco = function(target) { metadata.define(metadata.invoker, FactoryInvoker.instance, target); };