Event that is emitted when a property value changes.

interface WatchEvent<Name = PropertyKey, T = unknown> {
    name: Name;
    old: T;
    value: T;
}

Type Parameters

  • Name = PropertyKey
  • T = unknown

Properties

Properties

name: Name

The name of the property.

old: T

The old value of the property.

value: T

The current value of the property.