Merge pull request #28518 from yousky/master

adds typings for the 'node-gcm' package
This commit is contained in:
Mine Starks
2018-09-07 15:31:32 -07:00
committed by GitHub
+8 -1
View File
@@ -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 <https://github.com/horiuchi>
// BWYou <https://github.com/yousky/>
// 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[]