Logos DX
    Preparing search index...

    Variable addHandlerForConst

    addHandlerFor: AddHandlerFor = ...

    Add a handler for a specific function

    the function to add the handler for

    the constructor to add the handler for

    the handler to add

    addHandlerFor('clone', FooClass, (original, seen) => new FooClass(original.bar, original.baz));
    addHandlerFor('equals', FooClass, (a, b, seen) => equals(a.bar, b.bar, seen) && equals(a.baz, b.baz, seen));
    addHandlerFor('merge', FooClass, (target, source, opts) => merge(target.bar, source.bar, opts));