From 7ecfed27679eb149130aef8f2fee509294673a12 Mon Sep 17 00:00:00 2001 From: zaphod534 <32894570+zaphod534@users.noreply.github.com> Date: Mon, 3 Jan 2022 20:11:40 +0100 Subject: [PATCH] fix: set notification type as one of defined notifications (#211) (#213) --- lib/pigeon.ex | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/pigeon.ex b/lib/pigeon.ex index a02921ea..cf1ff2a4 100644 --- a/lib/pigeon.ex +++ b/lib/pigeon.ex @@ -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.