vonage-node-code-snippets
vonage-node-code-snippets copied to clipboard
sendSms bad typing: Expected 5 arguments, but got 4.
The type for the function sendSms is wrong, in the example you are using 4 arguments, but in its type declaration 5 arguments are needed.
Expected Behavior
Calling the sendSms function and passing arguments like in the example should work.
Current Behavior
There is an error when I try to use the sendSms function. I have the following SS:


Possible Solution
Update the docs to provide a correct example or update the type of the function.
Steps to Reproduce
- Try to run this using TypeScript
Context (Environment)
I'm trying to test your API following the basic example for sending an sms. I'm currently using:
- Node.js: v16.16.0
- TypeScript: v4.7.4
- @vonage/server-sdk: v2.11.2