Socket
Socket
Sign inDemoInstall

fcm-types

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    fcm-types

Type definitions for FCM (Firebase Cloud Messaging)


Version published
Maintainers
1
Install size
31.0 kB
Created

Readme

Source

fcm-types

Type definitions for FCM (Firebase Cloud Messaging)

Description

This is a zero dependency module with only type definitions for FCM messages.

If you only need the types for your APIs or similar and don't want to add a dependency to the official admin.messaging client implementation from Google, this module is for you! It's also useful if you're using AWS SNS to send messages but want to build FCM (or APNS) payloads.

References:

See also:

Installation

npm install fcm-types

or

yarn add fcm-types

Example usage

import {Fcm} from 'fcm-types';

interface MyAppPushNotification {
  myCustomField: string;
  someOtherField?: string;
  fcm: Fcm;
}

const n: MyAppPushNotification = {
  myCustomField: 'Hello, world!',
  fcm: {
    notification: {
      title: 'Title',
      body: 'Body'
    },
    priority: 'high'
  }
};

Keywords

FAQs

Last updated on 14 Feb 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc