UNPKG

type-autofac

Version:

tsioc is AOP, Ioc container, via typescript decorator

53 lines (51 loc) 1.21 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * injecto token. * @export * @class Registration * @template T */ var Registration = /** @class */ (function () { /** * Creates an instance of Registration. * @param {Type<T> | AbstractType<T>} classType * @param {string} desc * @memberof Registration */ function Registration(classType, desc) { this.classType = classType; this.desc = desc; this.type = 'Registration'; } /** * get class. * * @returns * @memberof Registration */ Registration.prototype.getClass = function () { return this.classType; }; /** * get desc. * * @returns * @memberof Registration */ Registration.prototype.getDesc = function () { return this.desc; }; /** * to string. * * @returns {string} * @memberof Registration */ Registration.prototype.toString = function () { return this.type + " " + this.classType.name + " " + this.desc; }; return Registration; }()); exports.Registration = Registration; //# sourceMappingURL=sourcemaps/Registration.js.map