Interface CustomFunctionOverride<Fn>

Custom function override interface Allows replacing or wrapping helper functions with middleware-style patterns

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

Type Parameters

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

    The function signature being overridden

Properties

implementation?: Fn

Full replacement implementation

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

Wrapper function - receives original implementation Perfect for analytics, error handling, or rate limiting