lib/ecspanse/event/component_deleted.ex

defmodule Ecspanse.Event.ComponentDeleted do
  @moduledoc """
  Special framework event triggered automatically
  when a new component is deleted.
  Contains the deleted component state struct.

  See [a working example](./tutorial.md#finding-resources) in the tutorial
  """
  use Ecspanse.Event, fields: [:component]

  @type t :: %__MODULE__{
          component: struct()
        }
end