Interface CustomFunctionOverride<Fn>

Function override type - supports both full replacement and wrapping

interface CustomFunctionOverride<Fn> {
    implementation?: Fn;
    wrap?: ((defaultImplementation: Fn) => Fn);
}

Type Parameters

  • Fn extends ((...args: any[]) => any)

Properties

implementation?: Fn

Completely replace the default implementation

wrap?: ((defaultImplementation: Fn) => Fn)

Wrap the default implementation (before/after logic)