• Watches the given path on the given object for the first change that causes the value of the watched property to be truthy.

    See support/observableUtils!watch for more details.

    Type Parameters

    Parameters

    • obj: TObsv

      The object to watch.

    • path: TPath

      The property path to watch.

    • Optionaloptions: Pick<WhenOptions, "invert"> & {
          signal?: AbortSignal;
      }

      Optional. The options to use for watching the property.

    Returns Promise<void>

    Error if the object is not observable.

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