You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
It is possible to anotate multiple classes with the same interface and then ask to "Injector" all annotated classes with the interface?
By Example:
class Module{}
class AModule{}
di.annotate(Module, new di.Inject(Module));
class BModule{}
di.annotate(Module, new di.Inject(Module));
// More code
var di = require('di');
var Module = require('./core/module');
var injector = new di.Injector();
var modules = injector.get(Module);
// [AModule, BModule]