API interface for watcher property of WatchResult and WatchAllResult.

Hierarchy

  • IWatcher

Methods

  • Returns true if tracked sub-properties of oldValue are different from (or not present in) the newValue. oldValue must be either the value parameter of watch (or one of the values of watchAll) or a sub-object of it.

    See

    Returns

    true if tracked properties are different, otherwise - false.

    Type Parameters

    • Value

    Parameters

    • oldValue: Value

      value argument of watch/watchAll or its sub-object.

    • newValue: Value

      any object or primitive to compare against.

    Returns boolean

  • Stops tracking of property access for the proxies associated with this watcher. Accessing proxy (or sub-proxy) properties after calling watcher.stop() will generate a runtime error.

    Use this to make sure at runtime that no Proxy ends up in your derived data.

    Returns void

  • Unwraps the result derived from the input value proxy.

    The result object may contain proxies if sub-objects of the input value proxy were put into the derived data as they are. This method will replace all proxy occurences with their underlying object's value so that the final result is proxy-free.

    Returns

    The result without proxies in any of its deep sub-properties.

    Type Parameters

    • Result

    Parameters

    • result: Result

      The derived result object that might contain proxies in its sub-properties.

    Returns Result

Generated using TypeDoc