Page Contents
Home > @loopback/context > globalInterceptor
globalInterceptor() function
@globalInterceptor
decorator to mark the class as a global interceptor
Signature:
export declare function globalInterceptor(group?: string, ...specs: BindingSpec[]): ClassDecorator;
Parameters
Parameter | Type | Description |
---|---|---|
group | string | (Optional) Group for ordering the interceptor |
specs | BindingSpec[] | Extra binding specs |
Returns:
ClassDecorator