UNPKG

@loopback/docs

Version:

Documentation files rendered at [https://loopback.io](https://loopback.io)

36 lines (23 loc) 1.01 kB
--- lang: en title: 'API docs: context.globalinterceptor' 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.globalinterceptor.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/context](./context.md) &gt; [globalInterceptor](./context.globalinterceptor.md) ## globalInterceptor() function `@globalInterceptor` decorator to mark the class as a global interceptor <b>Signature:</b> ```typescript export declare function globalInterceptor(group?: string, ...specs: BindingSpec[]): ClassDecorator; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | group | string | Group for ordering the interceptor | | specs | [BindingSpec](./context.bindingspec.md)<!-- -->\[\] | Extra binding specs | <b>Returns:</b> ClassDecorator