The routes sub-module, as the module registry expects it.
⚠️ Exported as an object carrying init and not as a bare function:
DBModulesRegistry indexes its entries by { init(db) }, and a bare function
would pass typing there while breaking at initialisation — the registry calls
module.init, not module.
The
routessub-module, as the module registry expects it.⚠️ Exported as an object carrying
initand not as a bare function:DBModulesRegistryindexes its entries by{ init(db) }, and a bare function would pass typing there while breaking at initialisation — the registry callsmodule.init, notmodule.