From fa7211a481bd9e224682d79ab7f9975fbfcb378b Mon Sep 17 00:00:00 2001 From: Niels Date: Mon, 19 Aug 2019 20:19:11 +0200 Subject: [PATCH] Change 'custom' property in 'Data' Interface (#37739) * change custom property in data to object * property can also be a number --- types/node-pushnotifications/index.d.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/types/node-pushnotifications/index.d.ts b/types/node-pushnotifications/index.d.ts index 98ee6de4f0..93cc1237ba 100644 --- a/types/node-pushnotifications/index.d.ts +++ b/types/node-pushnotifications/index.d.ts @@ -109,9 +109,7 @@ declare namespace PushNotifications { title: string; /** REQUIRED */ body: string; - custom?: { - sender?: string; - }; + custom?: { [key: string]: string | number } | string; /** * gcm, apn. Supported values are 'high' or 'normal' (gcm). Will be translated to 10 and 5 for apn. Defaults * to 'high'