UNPKG

pushy-me

Version:

pushy-me is a simple push notification service for Node.js

10 lines (9 loc) 511 B
import { PushyMeInterface } from '../interfaces/pushy-me.interface'; import { JSONValue } from '../types'; import { SendPushNotificationOptions, SendPushNotificationResult } from '../types/push.types'; export declare class PushyMeService implements PushyMeInterface { private apiKey?; setApiKey(apiKey: string): void; sendPushNotification(data: JSONValue, recipient: string | string[], options?: Partial<SendPushNotificationOptions>): Promise<SendPushNotificationResult>; private apiKeyIsSet; }