UNPKG

@loopback/docs

Version:

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

81 lines (41 loc) 1.39 kB
--- lang: en title: 'API docs: context.describeinjectedarguments' 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.describeinjectedarguments.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/context](./context.md) &gt; [describeInjectedArguments](./context.describeinjectedarguments.md) ## describeInjectedArguments() function Return an array of injection objects for parameters **Signature:** ```typescript export declare function describeInjectedArguments(target: Object, method?: string): Readonly<Injection>[]; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td markdown="1"> target </td><td markdown="1"> Object </td><td markdown="1"> The target class for constructor or static methods, or the prototype for instance methods </td></tr> <tr><td markdown="1"> method </td><td markdown="1"> string </td><td markdown="1"> _(Optional)_ Method name, undefined for constructor </td></tr> </tbody></table> **Returns:** Readonly&lt;[Injection](./context.injection.md)<!-- -->&gt;\[\]