@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
39 lines (25 loc) • 1.61 kB
Markdown
---
lang: en
title: 'API docs: context.resolveinjectedproperties'
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.resolveinjectedproperties.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/context](./context.md) > [resolveInjectedProperties](./context.resolveinjectedproperties.md)
## resolveInjectedProperties() function
Given a class with properties decorated with `@inject`<!-- -->, return the map of properties resolved using the values bound in `ctx`<!-- -->.
The function returns an argument array when all dependencies were resolved synchronously, or a Promise otherwise.
<b>Signature:</b>
```typescript
export declare function resolveInjectedProperties(constructor: Function, ctx: Context, session?: ResolutionSession): ValueOrPromise<MapObject<BoundValue>>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| constructor | Function | The class for which properties should be resolved. |
| ctx | [Context](./context.context.md) | The context containing values for <code>@inject</code> resolution |
| session | [ResolutionSession](./context.resolutionsession.md) | Optional session for binding and dependency resolution |
<b>Returns:</b>
[ValueOrPromise](./context.valueorpromise.md)<!-- --><[MapObject](./context.mapobject.md)<!-- --><[BoundValue](./context.boundvalue.md)<!-- -->>>