Closed lludol closed 4 years ago
Hey @lludol ,
This is just a sample code and not meant to execute correctly for every situation. The exception basically says that there is no id
property on body
. You might try to log body itself and see the content: console.log(response.body);
Yes I know that I can check what is inside. But what's the point of having Typescript types defininitions if there are incomplete?
My bad, I overlooked the error details you provided. I will open a bug-fix request for this ticket. Thanks for opening this issue.
Fixed on https://github.com/zeyneloz/onesignal-node/pull/47 Released as v3.0.2
Hello,
I installed the latest version, I copy / paste the example code and there is a Typescript error.
The example code :
The Typescript error:
Why there is this error? Because of this in index.d.ts: