Eneris / push-receiver

A library to subscribe to GCM/FCM and receive notifications within a node process.
https://medium.com/@MatthieuLemoine/my-journey-to-bring-web-push-support-to-node-and-electron-ce70eea1c0b0
MIT License
16 stars 16 forks source link

Invalid object destructuring #10

Closed jjfufu closed 1 year ago

jjfufu commented 1 year ago

In example and readme.

const stopListeningToNotifications = instance.onNotification(({ notification }) => {
        // Do someting with the notification
        console.log('Notification received', notification)
    })

Property 'notification' does not exist on type 'MessageEnvelope'.