UNPKG

@loopback/docs

Version:

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

38 lines (25 loc) 1.33 kB
--- lang: en title: 'API docs: context.createproxywithinterceptors' 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.createproxywithinterceptors.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/context](./context.md) &gt; [createProxyWithInterceptors](./context.createproxywithinterceptors.md) ## createProxyWithInterceptors() function Create a proxy that applies interceptors for method invocations **Signature:** ```typescript export declare function createProxyWithInterceptors<T extends object>(target: T, context?: Context, session?: ResolutionSession, source?: InvocationSource): AsyncProxy<T>; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | target | T | Target class or object | | context | [Context](./context.context.md) | _(Optional)_ Context object | | session | [ResolutionSession](./context.resolutionsession.md) | _(Optional)_ Resolution session | | source | [InvocationSource](./context.invocationsource.md) | _(Optional)_ Invocation source | **Returns:** [AsyncProxy](./context.asyncproxy.md)<!-- -->&lt;T&gt;