Weenie is the function that kicks off the creation of a resource bag. It is intended to be
used to build up and then seal a final resource bag to be passed around in an application in
order to provide common dependencies.
The above initializes all the necessary dependencies and then seals them up, presenting a final
"app" that is typed as { a: number; b: boolean; c: string }. This can then be passed along
to web handlers, message handlers, cronjobs, etc., to perform the work that the service needs
to do.
Framework function
Weenie
is the function that kicks off the creation of a resource bag. It is intended to be used to build up and then seal a final resource bag to be passed around in an application in order to provide common dependencies.Here's how it is intended to be used:
The above initializes all the necessary dependencies and then seals them up, presenting a final "app" that is typed as
{ a: number; b: boolean; c: string }
. This can then be passed along to web handlers, message handlers, cronjobs, etc., to perform the work that the service needs to do.