Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/react-native-push-notification

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/react-native-push-notification - npm Package Compare versions

Comparing version 7.3.1 to 7.3.2

17

react-native-push-notification/index.d.ts

@@ -33,3 +33,3 @@ // Type definitions for react-native-push-notification 7.3

onRegister?: ((token: { os: string; token: string }) => void) | undefined;
onNotification?: ((notification: Omit<ReceivedNotification, "userInfo">) => void) | undefined;
onNotification?: ((notification: Omit<ReceivedNotification, 'userInfo'>) => void) | undefined;
onAction?: ((notification: ReceivedNotification) => void) | undefined;

@@ -63,5 +63,5 @@ onRegistrationError?: ((error: any) => void) | undefined;

ongoing?: boolean | undefined;
priority?: "max" | "high" | "low" | "min" | "default" | undefined;
visibility?: "private" | "public" | "secret" | undefined;
importance?: "default" | "max" | "high" | "low" | "min" | "none" | "unspecified" | undefined;
priority?: 'max' | 'high' | 'low' | 'min' | 'default' | undefined;
visibility?: 'private' | 'public' | 'secret' | undefined;
importance?: 'default' | 'max' | 'high' | 'low' | 'min' | 'none' | 'unspecified' | undefined;
ignoreInForeground?: boolean | undefined;

@@ -92,3 +92,3 @@ shortcutId?: string | undefined;

number?: string | number | undefined;
repeatType?: "week" | "day" | "hour" | "minute" | "time" | undefined;
repeatType?: 'week' | 'day' | 'hour' | 'minute' | 'time' | undefined;
repeatTime?: number | undefined;

@@ -147,3 +147,3 @@ }

localNotificationSchedule(notification: PushNotificationScheduleObject): void;
requestPermissions(permissions?: Array<"alert" | "badge" | "sound">): Promise<PushNotificationPermissions>;
requestPermissions(permissions?: Array<'alert' | 'badge' | 'sound'>): Promise<PushNotificationPermissions>;
subscribeToTopic(topic: string): void;

@@ -153,3 +153,8 @@ unsubscribeFromTopic(topic: string): void;

scheduleLocalNotification(notification: PushNotificationScheduleObject): void;
/**
* @deprecated use cancelLocalNotification method
*/
cancelLocalNotifications(details: { id: string }): void;
cancelLocalNotification(notificationId: string): void;
clearLocalNotification(tag: string, notificationID: number): void;

@@ -156,0 +161,0 @@ cancelAllLocalNotifications(): void;

{
"name": "@types/react-native-push-notification",
"version": "7.3.1",
"version": "7.3.2",
"description": "TypeScript definitions for react-native-push-notification",

@@ -38,4 +38,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-native-push-notification",

"dependencies": {},
"typesPublisherContentHash": "9ea10272e573eb8f174d6443d9a497d3002bdef5528029df183eae10116c9264",
"typeScriptVersion": "3.6"
"typesPublisherContentHash": "15b2bceb745bb47def896903e2fabe3925a9c8f3c4a5e9014ba5367c51b88f9f",
"typeScriptVersion": "3.7"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Wed, 07 Jul 2021 17:33:50 GMT
* Last updated: Thu, 26 Aug 2021 15:01:26 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Global values: none

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc