@types/react-native-push-notification
Advanced tools
Comparing version 3.0.4 to 3.0.5
@@ -34,4 +34,4 @@ // Type definitions for react-native-push-notification 3.0 | ||
export type PriorityType = 'max' | 'high' | 'low' | 'min' | 'default'; | ||
export type RepeatType = 'week' | 'day' | 'hour' | 'minute' | 'time'; | ||
export type PriorityType = "max" | "high" | "low" | "min" | "default"; | ||
export type RepeatType = "week" | "day" | "hour" | "minute" | "time"; | ||
@@ -79,3 +79,5 @@ export class PushNotificationObject { | ||
localNotificationSchedule(details: PushNotificationScheduleObject): void; | ||
requestPermissions(): void; | ||
requestPermissions( | ||
permissions?: Array<"alert" | "badge" | "sound"> | ||
): Promise<PushNotificationPermissions>; | ||
presentLocalNotification(details: PushNotificationObject): void; | ||
@@ -87,5 +89,9 @@ scheduleLocalNotification(details: PushNotificationScheduleObject): void; | ||
getApplicationIconBadgeNumber(callback: (badgeCount: number) => void): void; | ||
popInitialNotification(callback: (notification: PushNotification | null) => void): void; | ||
popInitialNotification( | ||
callback: (notification: PushNotification | null) => void | ||
): void; | ||
abandonPermissions(): void; | ||
checkPermissions(callback: (permissions: PushNotificationPermissions) => void): void; | ||
checkPermissions( | ||
callback: (permissions: PushNotificationPermissions) => void | ||
): void; | ||
registerNotificationActions(actions: string[]): void; | ||
@@ -92,0 +98,0 @@ clearAllNotifications(): void; |
{ | ||
"name": "@types/react-native-push-notification", | ||
"version": "3.0.4", | ||
"version": "3.0.5", | ||
"description": "TypeScript definitions for react-native-push-notification", | ||
@@ -22,8 +22,9 @@ "license": "MIT", | ||
"type": "git", | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
"directory": "types/react-native-push-notification" | ||
}, | ||
"scripts": {}, | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "41daa952fa3dde4967e08e76d998cba1596ea33fcd964a8c6850024fdd216dfe", | ||
"typesPublisherContentHash": "d38d3adcee4fedb1540c30359236242b892061a5abc5cc494dd7417617858690", | ||
"typeScriptVersion": "2.3" | ||
} |
@@ -5,3 +5,3 @@ # Installation | ||
# Summary | ||
This package contains type definitions for react-native-push-notification (https://github.com/zo0r/react-native-push-notification#readme). | ||
This package contains type definitions for react-native-push-notification ( https://github.com/zo0r/react-native-push-notification#readme ). | ||
@@ -12,3 +12,3 @@ # Details | ||
Additional Details | ||
* Last updated: Wed, 16 Jan 2019 01:11:46 GMT | ||
* Last updated: Mon, 06 May 2019 08:52:22 GMT | ||
* Dependencies: none | ||
@@ -15,0 +15,0 @@ * Global values: none |
5871
89