From a7eb13a0ada3e3a56ba1d37b35568db132c6db43 Mon Sep 17 00:00:00 2001 From: yousky Date: Thu, 30 Aug 2018 09:37:26 +0900 Subject: [PATCH] adds typings for the 'node-gcm' package --- types/node-gcm/index.d.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/types/node-gcm/index.d.ts b/types/node-gcm/index.d.ts index 61c7ae70dc..c2bca37a37 100644 --- a/types/node-gcm/index.d.ts +++ b/types/node-gcm/index.d.ts @@ -1,6 +1,7 @@ -// Type definitions for node-gcm 0.14.0 +// Type definitions for node-gcm 1.0.2 // Project: https://www.npmjs.org/package/node-gcm // Definitions by: Hiroki Horiuchi +// BWYou // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -14,12 +15,17 @@ export interface INotificationOptions { tag?: string; color?: string; click_action?: string; + body_loc_key?: string; + body_loc_args?: string; + title_loc_args?: string; + title_loc_key?: string; } export interface IMessageOptions { collapseKey?: string; priority?: string; contentAvailable?: boolean; + mutableContent?: boolean; delayWhileIdle?: boolean; timeToLive?: number; restrictedPackageName?: string; @@ -57,6 +63,7 @@ export interface ISenderSendOptions { export interface IRecipient { to?: string, topic?: string, + condition?: string, notificationKey?: string, registrationIds?: string[], registrationTokens?: string[]