• Watches the given path on the given object for the first change.

    See support/observableUtils!watch for more details.

    Type Parameters

    Parameters

    • obj: TObsv

      The object to watch.

    • path: TPath

      The property path to watch.

    • Optionaloptions: {
          signal?: AbortSignal;
      }

      Optional. The options to use for watching the property.

      • Optionalsignal?: AbortSignal

        Optional signal to abort. The promise will be rejected if the signal is aborted.

    Returns Promise<void>

    Error if the object is not observable.

    Error if the path is to a non-configurable property.

    Error if the path is not a valid property path.