@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
28 lines (18 loc) • 896 B
Markdown
---
lang: en
title: 'API docs: context.genericinterceptorchain.asinterceptor'
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.genericinterceptorchain.asinterceptor.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/context](./context.md) > [GenericInterceptorChain](./context.genericinterceptorchain.md) > [asInterceptor](./context.genericinterceptorchain.asinterceptor.md)
## GenericInterceptorChain.asInterceptor() method
Use the interceptor chain as an interceptor
<b>Signature:</b>
```typescript
asInterceptor(): GenericInterceptor<C>;
```
<b>Returns:</b>
[GenericInterceptor](./context.genericinterceptor.md)<!-- --><C>