Protected Readonly aliasesProtected Readonly bindProtected Optional Readonly configProtected containerProtected Readonly exportsProtected Readonly factoriesProtected Readonly factoriesProtected Readonly importedProtected importerProtected Readonly importsProtected initializedStatic Readonly __svt_Returns bind manager (aka bind util)
Binds async factory to key
Binds sync factory to key
Returns async entity factory by given key. It will try to find factory from the current module, then from imported modules and finally from global exports. It will also try to resolve sync binding if async binding is not found.
Protected getReturns sync entity factory by given key. It will try to find factory from the current module, then from imported modules and finally from global exports.
Returns true if binding is exported from this module. Also includes sync imports check.
Returns true if binding is exported from this module.
Returns true if async (or sync) binding is imported from other modules.
Module.import
Returns true if sync binding is imported from other modules.
Imports modules into current the current module. All exported bindings (and/or its aliases) will be available in the current module.
Returns resolved entity by given async binding or binding ref. It will try to find binding from the current module, then from imported modules and finally from global exports. It will also try to resolve sync binding if async binding is not found.
Optional options: null | Partial<IInjectOptions>Optional ctx: TProvideContextOptional options: null | Partial<IInjectOptions>Optional ctx: TProvideContextOptional options: null | Partial<IInjectOptions>Optional ctx: TProvideContextReturns resolved entity by given sync binding or binding ref. It will try to find binding from the current module, then from imported modules and finally from global exports.
Optional options: null | Partial<IInjectOptions>Optional ctx: TProvideContextOptional options: null | Partial<IInjectOptions>Optional ctx: TProvideContextOptional options: null | Partial<IInjectOptions>Optional ctx: TProvideContextProtected setup
This is a special module type designed specially for providing bindings and logic to other modules by its input config.
Unlike other modules, this module type is not registered in the container and only be imported only from other modules.
Every module import will create a new instance of this module which will be able to process all logic separately.
For example, you can register http controllers or database orm models in any module.