Skip to main content
Previewvendurehq/vendure/feat/4563-refund-destinations

RegisterMethodHooks

Allows you to register hooks for a specific method of an instrumented class. These hooks allow extra telemetry actions to be performed on the method.

They can then be passed to the TelemetryPlugin via the TelemetryPluginOptions.

Example

Typescript
Signature

Parameters

target

parameterType<T>

hooks

parameterMethodHooksForType<T>