Transient read-only view of the properties changed by the latest tracker check.

The tracker reuses the same change-set instance for every check to avoid per-check allocation. Consumers should inspect the result immediately. Use PropChangeTracker.Data.ChangeSet.toArray when a durable list of changed keys is needed.

interface ChangeSet<K extends PropertyKey> {
    changed: boolean;
    count: number;
    "[iterator]"(): Iterator<K, any, any>;
    has(key: K): boolean;
    hasAll(keys: readonly K[]): boolean;
    hasAny(keys: readonly K[]): boolean;
    toArray(): K[];
}

Type Parameters

Hierarchy
Index
  • Returns Iterator<K, any, any>

  • Determines whether a specific property changed.

    Parameters

    • key: K

      Property to test.

    Returns boolean

  • Determines whether every property in keys changed.

    Parameters

    • keys: readonly K[]

      Properties to test.

    Returns boolean

  • Determines whether any property in keys changed.

    Parameters

    • keys: readonly K[]

      Properties to test.

    Returns boolean

  • Allocates and returns the changed properties in configured key order.

    Returns K[]

changed: boolean

Whether one or more tracked properties changed.

count: number

Number of tracked properties that changed.