@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
89 lines (44 loc) • 1.62 kB
Markdown
---
lang: en
title: 'API docs: context.injectionmetadata'
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.injectionmetadata.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/context](./context.md) > [InjectionMetadata](./context.injectionmetadata.md)
## InjectionMetadata interface
An object to provide metadata for `@inject`
**Signature:**
```typescript
export interface InjectionMetadata extends Omit<ResolutionOptions, 'session'>
```
**Extends:** Omit<[ResolutionOptions](./context.resolutionoptions.md)<!-- -->, 'session'>
## Properties
<table><thead><tr><th>
Property
</th><th>
Modifiers
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td markdown="1">
[bindingComparator?](./context.injectionmetadata.bindingcomparator.md)
</td><td markdown="1">
</td><td markdown="1">
[BindingComparator](./context.bindingcomparator.md)
</td><td markdown="1">
_(Optional)_ Optional comparator for matched bindings
</td></tr>
<tr><td markdown="1">
[decorator?](./context.injectionmetadata.decorator.md)
</td><td markdown="1">
</td><td markdown="1">
string
</td><td markdown="1">
_(Optional)_ Name of the decorator function, such as `@inject` or `@inject.setter`<!-- -->. It's usually set by the decorator implementation.
</td></tr>
</tbody></table>