@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
34 lines (22 loc) • 796 B
Markdown
lang: en
title: 'API docs: context.resolverfunction'
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.resolverfunction.html
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/context](./context.md) > [ResolverFunction](./context.resolverfunction.md)
## ResolverFunction interface
A function to provide resolution of injected values.
<b>Signature:</b>
```typescript
export interface ResolverFunction
```
## Example
```ts
const resolver: ResolverFunction = (ctx, injection, session) {
return session.currentBinding?.key;
}
```