@neoskop/annotation-factory
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -91,8 +91,13 @@ (function (global, factory) { | ||
var metaCtor = makeMetadataCtor(props); | ||
function DecoratorFactory(objOrType) { | ||
function DecoratorFactory() { | ||
var args = []; | ||
for (var _i = 0; _i < arguments.length; _i++) { | ||
args[_i] = arguments[_i]; | ||
} | ||
var _a; | ||
if (this instanceof DecoratorFactory) { | ||
metaCtor.call(this, objOrType); | ||
metaCtor.apply(this, args); | ||
return this; | ||
} | ||
var instance = new DecoratorFactory(objOrType); | ||
var instance = new ((_a = DecoratorFactory).bind.apply(_a, __spread([void 0], args)))(); | ||
var TypeDecorator = function TypeDecorator(cls) { | ||
@@ -99,0 +104,0 @@ var annotations = cls.hasOwnProperty(ANNOTATIONS) ? |
@@ -48,8 +48,13 @@ /** | ||
var metaCtor = makeMetadataCtor(props); | ||
function DecoratorFactory(objOrType) { | ||
function DecoratorFactory() { | ||
var args = []; | ||
for (var _i = 0; _i < arguments.length; _i++) { | ||
args[_i] = arguments[_i]; | ||
} | ||
var _a; | ||
if (this instanceof DecoratorFactory) { | ||
metaCtor.call(this, objOrType); | ||
metaCtor.apply(this, args); | ||
return this; | ||
} | ||
var instance = new DecoratorFactory(objOrType); | ||
var instance = new ((_a = DecoratorFactory).bind.apply(_a, tslib_1.__spread([void 0], args)))(); | ||
var TypeDecorator = function TypeDecorator(cls) { | ||
@@ -56,0 +61,0 @@ var annotations = cls.hasOwnProperty(ANNOTATIONS) ? |
{ | ||
"name": "@neoskop/annotation-factory", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Factories for Typescript Annotations", | ||
@@ -5,0 +5,0 @@ "main": "bundle/annotation-factory.bundle.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
84355
492