Skip to main content
createProxy<T>(target, handler): T
Defined in: packages/http-framework/src/lib/decorators/utils.ts:43 Creates a new proxy to efficiently add properties to a class without creating subclasses.

Type Parameters

T

T extends object

Parameters

target

T The constructor of the class to modify.

handler

Omit<ProxyHandler<T>, "get"> The handler function to modify the constructor behavior for the target.

Returns

T The proxy.