Skip to content

Commit

Permalink
fix: set notification type as one of defined notifications (#211) (#213)
Browse files Browse the repository at this point in the history
  • Loading branch information
zaphod534 committed Jan 3, 2022
1 parent 54735f8 commit 7ecfed2
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 7ecfed2

Please sign in to comment.