Page Contents

Home > @loopback/context > GenericInterceptorOrKey

GenericInterceptorOrKey type

Interceptor function or a binding key that resolves a generic interceptor function

Signature:

export type GenericInterceptorOrKey<C extends Context = Context> = BindingAddress<GenericInterceptor<C>> | GenericInterceptor<C>;

References: Context, BindingAddress, GenericInterceptor