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 55e0dea
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/pigeon.ex
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ defmodule Pigeon do
See `Pigeon.Adapter` for instructions.
"""

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

@default_timeout 5_000

Expand Down Expand Up @@ -53,7 +53,11 @@ 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 55e0dea

Please sign in to comment.