@types/node-pushnotifications
Advanced tools
Comparing version
@@ -188,2 +188,3 @@ /// <reference types="node" /> | ||
} | ||
type MethodValue = "apn" | "gcm" | "adm" | "wns" | "webPush" | "unknown" | "none"; | ||
interface Message { | ||
@@ -197,3 +198,3 @@ regId: string; | ||
interface Result { | ||
method: string; | ||
method: MethodValue; | ||
success: number; | ||
@@ -204,4 +205,4 @@ failure: number; | ||
type PushMethod = (regIds: string[], data: Data, settings: Settings) => void; | ||
type Callback = (err: any, result: any) => void; | ||
type Callback = (err: any, result: Result[]) => void; | ||
type RegistrationId = string | webPush.PushSubscription; | ||
} |
{ | ||
"name": "@types/node-pushnotifications", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "TypeScript definitions for node-pushnotifications", | ||
@@ -31,4 +31,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-pushnotifications", | ||
}, | ||
"typesPublisherContentHash": "c31c6b8e6fba781766d7dbbd2d736ebe835333a8d523e83561381ab541662e24", | ||
"typesPublisherContentHash": "50de635cb359dfed1b8f8410dd4abbb9362538f5b66ee29769b6b6275a9be2f0", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Wed, 18 Oct 2023 05:47:08 GMT | ||
* Last updated: Tue, 24 Oct 2023 14:15:24 GMT | ||
* Dependencies: [@types/node](https://npmjs.com/package/@types/node), [@types/web-push](https://npmjs.com/package/@types/web-push) | ||
@@ -14,0 +14,0 @@ |
10871
0.9%200
0.5%