View Source Yex.MapEvent (y_ex v0.7.2)

Event when Map type changes

@see Yex.SharedType.observe/1 @see Yex.SharedType.observe_deep/1

Summary

Types

change()

@type change() ::
  %{action: :add, new_value: term()}
  | %{action: :delete, old_value: term()}
  | %{action: :update, old_value: term(), new_value: term()}

keys()

@type keys() :: %{required(String.t()) => %{}}

t()

@type t() :: %Yex.MapEvent{
  keys: keys(),
  path: [number() | String.t()],
  target: Yex.Map.t()
}