UNPKG

@loopback/docs

Version:
23 lines (15 loc) 682 B
--- lang: en title: 'API docs: context.getter' keywords: LoopBack 4.0, LoopBack 4 sidebar: lb4_sidebar permalink: /doc/en/lb4/apidocs.context.getter.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/context](./context.md) &gt; [Getter](./context.getter.md) ## 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. <b>Signature:</b> ```typescript export declare type Getter<T> = () => Promise<T>; ```