async-injection
Version:
A robust lightweight dependency injection library for TypeScript.
18 lines • 498 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.InjectionToken = void 0;
/**
* Allow for implicit typing of constants and interfaces.
* Inspired by Angular and some colleges at work.
*/
// eslint-disable-next-line @typescript-eslint/no-unused-vars
class InjectionToken {
constructor(id) {
this.id = id;
}
toString() {
return this.id.toString();
}
}
exports.InjectionToken = InjectionToken;
//# sourceMappingURL=injector.js.map