-
Notifications
You must be signed in to change notification settings - Fork 521
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to get Twilio class type? #913
Comments
We've also just found this on a new project when attempting to use Seems like it either: needs to be fixed at the typing itself |
We also found this to be an issue on upgrading one of our projects. I've submitted #914 which should fix this. |
Hi @jgeurts! Thank you for bringing this to our attention and thank you @aaronhuggins-carewell for opening a PR to solve this bug! Our team will review #914 and we will update this issue with the expected release date for the next version of the twilio-node library that will include a fix. |
@JenniferMah Thanks! I'll run Prettier in the AM and push. Should otherwise be ready for review. |
@JenniferMah Corrected style formatting. Everything appears to pass locally running |
Thanks again, @aaronhuggins-carewell for opening a PR (#914) to solve this issue. I've gone ahead and merged your changes. These changes will be included in our next version release of the library, expected on February 22nd. |
when doing
the type of twilio_client is any in version 4 where as in version 3 it used to be of the correct type. Please do let me know if I am doing something wrong here |
Issue Summary
With v3.84, we were able to pull in the type of the Twilio client and reference it in our application:
However, now with v4.7, the same code not longer works, with the following message:
However,
typeof Twilio
does not work and is not what we're looking for. We are looking to reference an instance of the Twilio class. Any advice on how to do this with v4?The text was updated successfully, but these errors were encountered: