Page Contents

Home > @loopback/context > asGlobalInterceptor

asGlobalInterceptor() function

The BindingTemplate function to configure a binding as a global interceptor by tagging it with ContextTags.INTERCEPTOR

Signature:

export declare function asGlobalInterceptor(group?: string): BindingTemplate;

Parameters

Parameter Type Description
group string (Optional) Group for ordering the interceptor

Returns:

BindingTemplate