Added data map in 'node-gcm'.

This commit is contained in:
Daniel Rosenwasser 2015-08-13 15:02:38 -07:00
parent f2f7277262
commit 4549840d33

View File

@ -10,6 +10,9 @@ declare module "node-gcm" {
delayWhileIdle?: boolean;
timeToLive?: number;
dryRun?: boolean;
data: {
[key: string]: string;
};
}
export class Message {
@ -20,7 +23,7 @@ declare module "node-gcm" {
dryRun: boolean;
addData(key: string, value: string): void;
addData(data: any): void;
addData(data: { [key: string]: string }): void;
}