Skip to content

Commit

Permalink
fix: set notification type as one of defined notifications (codedge-l…
Browse files Browse the repository at this point in the history
  • Loading branch information
zaphod534 committed Nov 4, 2021
1 parent 589752b commit a72a4fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/pigeon.ex
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ defmodule Pigeon do
See `Pigeon.Adapter` for instructions.
"""

alias Pigeon.{ADM, APNS, FCM, LegacyFCM}
alias Pigeon.Tasks

@default_timeout 5_000
Expand Down Expand Up @@ -53,7 +54,7 @@ defmodule Pigeon do
| {module, atom}
| {module, atom, [any]}

@type notification :: %{__meta__: Pigeon.Metadata.t()}
@type notification :: %ADM.Notification{} | %APNS.Notification{} | %FCM.Notification{} | %LegacyFCM.Notification{}

@typedoc ~S"""
Options for sending push notifications.
Expand Down

0 comments on commit a72a4fa

Please sign in to comment.