NestKit

UseExpansionMethod

function

Decorator function to link a field in an

Signature

typescript
function UseExpansionMethod(config: UseExpansionMethodConfig<TParentResource, TReusableExpander>): ClassDecorator

Parameters

  • config (UseExpansionMethodConfig<TParentResource, TReusableExpander>) - Configuration detailing the field name, reusable class, method, and parameter mapping.

Returns

ClassDecorator