mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-24 11:50:59 +08:00
Update node-gcm.d.ts
added missing recipient type
This commit is contained in:
1 parent
ea1bdfa206
commit
54d5b57d1c
1 file changed
+12
-4
Vendored
+12
-4
@@ -54,15 +54,23 @@ declare module "node-gcm" {
|
||||
backoff?: number;
|
||||
}
|
||||
|
||||
export interface IRecipient {
|
||||
to?: string,
|
||||
topic?: string,
|
||||
notificationKey?: string,
|
||||
registrationIds?: string[],
|
||||
registrationTokens?: string[]
|
||||
}
|
||||
|
||||
export class Sender {
|
||||
constructor(key: string, options?: ISenderOptions);
|
||||
key: string;
|
||||
options: ISenderOptions;
|
||||
|
||||
send(message: Message, registrationIds: string|string[], callback: (err: any, resJson: IResponseBody) => void): void;
|
||||
send(message: Message, registrationIds: string|string[], retries: number, callback: (err: any, resJson: IResponseBody) => void): void;
|
||||
send(message: Message, registrationIds: string|string[], options: ISenderSendOptions, callback: (err: any, resJson: IResponseBody) => void): void;
|
||||
sendNoRetry(message: Message, registrationIds: string|string[], callback: (err: any, resJson: IResponseBody) => void): void;
|
||||
send(message: Message, registrationIds: string|string[]|IRecipient, callback: (err: any, resJson: IResponseBody) => void): void;
|
||||
send(message: Message, registrationIds: string|string[]|IRecipient, retries: number, callback: (err: any, resJson: IResponseBody) => void): void;
|
||||
send(message: Message, registrationIds: string|string[]|IRecipient, options: ISenderSendOptions, callback: (err: any, resJson: IResponseBody) => void): void;
|
||||
sendNoRetry(message: Message, registrationIds: string|string[]|IRecipient, callback: (err: any, resJson: IResponseBody) => void): void;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user