- Preparing search index...
- The search index is not available
Ditox.js
Type alias ModuleDeclaration<T>
Module
Declaration
<T>: { afterBinding
?: ((container
: Container) => void); beforeBinding
?: ((container
: Container) => void); exports
?: { [ K in keyof GetModuleProps<T>]?: Token<GetModuleProps<T>[K]> }; factory
: ((container
: Container) => T); imports
?: ReadonlyArray<ModuleBindingEntry>; token
: Token<T>; }
Type declaration
-
Optional
afterBinding?: ((container: Container) => void)
-
Optional
beforeBinding?: ((container: Container) => void)
-
Optional
exports?: { [ K in keyof GetModuleProps<T>]?: Token<GetModuleProps<T>[K]> }
-
factory: ((container: Container) => T)
-
-
Description how to bind the module in declarative way.
Example