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 29, 2021
1 parent 54735f8 commit 60166dc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/pigeon.ex
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ defmodule Pigeon do
| {module, atom}
| {module, atom, [any]}

@type notification :: %{__meta__: Pigeon.Metadata.t()}
@type notification :: %{
:__struct__ => atom(),
:__meta__ => Pigeon.Metadata.t(),
optional(atom()) => any()
}

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

0 comments on commit 60166dc

Please sign in to comment.