Page Contents
Home > @loopback/context > Getter
Getter type
The function injected by @inject.getter(bindingSelector)
. It can be used to fetch bound value(s) from the underlying binding(s). The return value will be an array if the bindingSelector
is a BindingFilter
function.
Signature:
export type Getter<T> = () => Promise<T>;