@types/node-pushnotifications
Advanced tools
Comparing version 1.0.0 to 1.0.1
// Type definitions for node-pushnotifications 1.0 | ||
// Project: https://github.com/appfeel/node-pushnotifications | ||
// Definitions by: Menushka Weeratunga <https://github.com/menushka> | ||
// Julian Hundeloh <https://github.com/jaulz> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.8 | ||
// TypeScript Version: 2.1 | ||
/// <reference types="node" /> | ||
import * as webPush from 'web-push'; | ||
export = PushNotifications; | ||
@@ -16,4 +19,4 @@ | ||
sendWith(method: PushNotifications.PushMethod, regIds: string[], data: PushNotifications.Data, cb: PushNotifications.Callback): void; | ||
send(registrationIds: string[], data: PushNotifications.Data, cb: PushNotifications.Callback): void; | ||
send(registrationIds: string[], data: PushNotifications.Data): Promise<any>; | ||
send(registrationIds: PushNotifications.RegistrationId|PushNotifications.RegistrationId[], data: PushNotifications.Data, cb: PushNotifications.Callback): void; | ||
send(registrationIds: PushNotifications.RegistrationId|PushNotifications.RegistrationId[], data: PushNotifications.Data): Promise<any>; | ||
} | ||
@@ -100,2 +103,6 @@ | ||
}; | ||
/** Web */ | ||
web?: webPush.RequestOptions; | ||
/** Always use FCM? */ | ||
isAlwaysUseFCM?: boolean; | ||
} | ||
@@ -182,2 +189,3 @@ interface Data { | ||
type Callback = (err: any, result: any) => void; | ||
type RegistrationId = string | webPush.PushSubscription; | ||
} |
{ | ||
"name": "@types/node-pushnotifications", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "TypeScript definitions for node-pushnotifications", | ||
@@ -11,15 +11,23 @@ "license": "MIT", | ||
"githubUsername": "menushka" | ||
}, | ||
{ | ||
"name": "Julian Hundeloh", | ||
"url": "https://github.com/jaulz", | ||
"githubUsername": "jaulz" | ||
} | ||
], | ||
"main": "", | ||
"types": "index", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
"directory": "types/node-pushnotifications" | ||
}, | ||
"scripts": {}, | ||
"dependencies": { | ||
"@types/node": "*" | ||
"@types/node": "*", | ||
"@types/web-push": "*" | ||
}, | ||
"typesPublisherContentHash": "9f8f322c8f4a7b89ff45a0d9c48685e4899b7bee47c9852f6be97ef25cf74e93", | ||
"typeScriptVersion": "2.0" | ||
"typesPublisherContentHash": "af81b14e96335432e57b629256b3912307081f99fd423cd01e3618752bfdd401", | ||
"typeScriptVersion": "2.8" | ||
} |
@@ -5,13 +5,13 @@ # Installation | ||
# Summary | ||
This package contains type definitions for node-pushnotifications (https://github.com/appfeel/node-pushnotifications). | ||
This package contains type definitions for node-pushnotifications ( https://github.com/appfeel/node-pushnotifications ). | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-pushnotifications | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-pushnotifications | ||
Additional Details | ||
* Last updated: Fri, 23 Mar 2018 22:51:43 GMT | ||
* Dependencies: node | ||
* Last updated: Tue, 07 May 2019 18:17:31 GMT | ||
* Dependencies: @types/web-push, @types/node | ||
* Global values: none | ||
# Credits | ||
These definitions were written by Menushka Weeratunga <https://github.com/menushka>. | ||
These definitions were written by Menushka Weeratunga <https://github.com/menushka>, Julian Hundeloh <https://github.com/jaulz>. |
Sorry, the diff of this file is not supported yet
9572
182
2
+ Added@types/web-push@*
+ Added@types/web-push@3.6.4(transitive)