Declares a module binding
const LOGGER_MODULE = declareModule<LoggerModule>({ factory: (container) => { const transport = container.resolve(TRANSPORT_TOKEN).open(); return { logger: { log: (message) => transport.write(message) }, destroy: () => transport.close(), } }, exports: { logger: LOGGER_TOKEN, },});
a module declaration
Generated using TypeDoc
Declares a module binding
Example