UNPKG

pushy-me

Version:

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

11 lines (10 loc) 575 B
import { JSONValue } from './types'; import { SendPushNotificationOptions, SendPushNotificationResult } from './types/push.types'; import { PushyMeInterface } from './interfaces/pushy-me.interface'; export default class PushyMe { private readonly pushyMeInterface; private readonly apiKey; constructor(pushyMeInterface: PushyMeInterface, apiKey: string); static initialize(apiKey: string): PushyMe; sendPushNotification(data: JSONValue, recipient: string | string[], options?: Partial<SendPushNotificationOptions>): Promise<SendPushNotificationResult>; }