bindTo
Binds injection token to lazy dependency.
Importing
Type declaration
The function is responsible for binding context token to ContextReader
which can be a fp-ts Reader
instance or plain a () => T
. The function is producing a lazy binding, which means that, the dependency will be evaluated on it's first call (injection).
bindTo
is an alias of bindLazilyTo
.
Example
Last updated