This should only make the listed dependencies available in the given context. If using a context that's not ModuleContext, then all modules are available. Should be easy to do using a Partial.
Any module names that conflict with the core types (e.g. db) will be renamed with an underscore. e.g. calling the db module looks like ctx._db.doSomething({})
This needs to have a type-safe req/res format. This will require generating types in the runtime_config.ts file.
Example:
ctx.users.get({ … })
This should only make the listed
dependencies
available in the given context. If using a context that's notModuleContext
, then all modules are available. Should be easy to do using aPartial
.Any module names that conflict with the core types (e.g.
db
) will be renamed with an underscore. e.g. calling thedb
module looks likectx._db.doSomething({})
This needs to have a type-safe req/res format. This will require generating types in the
runtime_config.ts
file.