Page Contents

Home > @loopback/context > ResolverFunction

ResolverFunction interface

A function to provide resolution of injected values.

Signature:

export interface ResolverFunction 

Example

const resolver: ResolverFunction = (ctx, injection, session) {
  return session.currentBinding?.key;
}