diff --git a/lib/dotcom/alerts.ex b/lib/dotcom/alerts.ex index 6fcf6df3ca..646d5cd29c 100644 --- a/lib/dotcom/alerts.ex +++ b/lib/dotcom/alerts.ex @@ -10,7 +10,7 @@ defmodule Dotcom.Alerts do @doc """ Does the alert have an effect that is considered service-impacting? """ - @spec service_impacting_alert?(%Alert{}) :: boolean() + @spec service_impacting_alert?(%Alert.t()) :: boolean() def service_impacting_alert?(%Alert{effect: effect}) do effect in @service_impacting_effects end diff --git a/lib/dotcom/alerts/disruptions/subway.ex b/lib/dotcom/alerts/disruptions/subway.ex index 8a97b40176..3315d502e0 100644 --- a/lib/dotcom/alerts/disruptions/subway.ex +++ b/lib/dotcom/alerts/disruptions/subway.ex @@ -15,7 +15,7 @@ defmodule Dotcom.Alerts.Disruptions.Subway do @doc """ Disruptions that occur any time after today's service range. """ - @spec future_disruptions() :: %{Utils.ServiceDateTime.service_range() => [%Alert{}]} + @spec future_disruptions() :: %{Utils.ServiceDateTime.service_range() => [Alert.t()]} def future_disruptions() do disruption_groups() |> Map.take([:this_week, :next_week, :later]) end @@ -23,7 +23,7 @@ defmodule Dotcom.Alerts.Disruptions.Subway do @doc """ Disruptions that occur during today's service range. """ - @spec todays_disruptions() :: %{Utils.ServiceDateTime.service_range() => [%Alert{}]} + @spec todays_disruptions() :: %{Utils.ServiceDateTime.service_range() => [Alert.t()]} def todays_disruptions() do disruption_groups() |> Map.take([:today]) end