From 60166dc815d94127162f50824087640fd3765160 Mon Sep 17 00:00:00 2001 From: zaphod534 Date: Thu, 4 Nov 2021 15:34:51 +0100 Subject: [PATCH] fix: set notification type as one of defined notifications (#211) --- 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.