UNPKG

@methodus/framework-injection

Version:

Dependency injection for methodus

14 lines (13 loc) 404 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Injectable = void 0; require("reflect-metadata"); var container_1 = require("../container"); function Injectable(name) { function DecoratorFactory(cls) { container_1.Injector.register(name || cls, { useClass: cls }); return cls; } return DecoratorFactory; } exports.Injectable = Injectable;