Interface EqualRule<T>

interface EqualRule<T> {
    equal: ((objectA: T, objectB: T, equal: EqualCallback<any>) => boolean);
    matches: ((object: any) => object is T);
}

Type Parameters

  • T

Properties

Properties

equal: ((objectA: T, objectB: T, equal: EqualCallback<any>) => boolean)

Equals the two sources.

Type declaration

    • (objectA, objectB, equal): boolean
    • Parameters

      • objectA: T

        May be undefined, the first object to equal.

      • objectB: T

        The second object to equal or clone if objectA is undefined.

      • equal: EqualCallback<any>

        This callback may be used to equal or clone sub-properties.

      Returns boolean

matches: ((object: any) => object is T)

Returns true if this EqualRule should be applied for the given object.