UNPKG

@loopback/docs

Version:

Documentation files rendered at [https://loopback.io](https://loopback.io)

65 lines (34 loc) 1.25 kB
--- lang: en title: 'API docs: context.injectable.provider' keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI sidebar: lb4_sidebar editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/context permalink: /doc/en/lb4/apidocs.context.injectable.provider.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/context](./context.md) &gt; [injectable](./context.injectable.md) &gt; [provider](./context.injectable.provider.md) ## injectable.provider() function `@injectable.provider` to denote a provider class A list of binding scope/tags or template functions to configure the binding **Signature:** ```typescript function provider(...specs: BindingSpec[]): (target: Constructor<unknown>) => void; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td markdown="1"> specs </td><td markdown="1"> [BindingSpec](./context.bindingspec.md)<!-- -->\[\] </td><td markdown="1"> </td></tr> </tbody></table> **Returns:** (target: [Constructor](./context.constructor.md)<!-- -->&lt;unknown&gt;) =&gt; void