vonage-node-code-snippets icon indicating copy to clipboard operation
vonage-node-code-snippets copied to clipboard

sendSms bad typing: Expected 5 arguments, but got 4.

Open AnthonyLzq opened this issue 3 years ago • 0 comments

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:

image

image

Possible Solution

Update the docs to provide a correct example or update the type of the function.

Steps to Reproduce

  1. 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

AnthonyLzq avatar Jul 28 '22 02:07 AnthonyLzq