[Bug] Invalid types in last update
Problem
Some of the changes in the following commit define types don't match the actual structure of the data causing type errors when attempting to access values as documented. For example, `lineTypeIntelligence: Record<string, object>` suggests that the shape would be: [code block] It should probably instead be `Record<string, any>`. Or, even better, it should contain the actual available keys and value types as documented. https://github.com/twilio/twilio-node/commit/49f3f2b147818bf03d0067ad7cc13fbcbaf72c7d#diff-55a60b51b684465835a0448f6efceb0ef9b0cb5ada598728e1594ebf2507deddR292
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: [Bug] Invalid types in last update
Hi, we are experiencing a similar issue with the `types` field on the `SubscriptionListInstanceCreateOptions` interface, which was updated from `Array<any>` to `Array<object>` type. Now when trying to create a subscription, we get the following error `Error: Input list of Types cannot be empty`. We have reverted our twilio client version back to `5.2.2`, before this change, and things are workin
Trust Score
3 verifications
- 1
Hi, we are experiencing a similar issue with the `types` field on the `Subscript
Hi, we are experiencing a similar issue with the `types` field on the `SubscriptionListInstanceCreateOptions` interface, which was updated from `Array<any>` to `Array<object>` type. Now when trying to create a subscription, we get the following error `Error: Input list of Types cannot be empty`.
- 2
We have reverted our twilio client version back to `5.2.2`, before this change,
We have reverted our twilio client version back to `5.2.2`, before this change, and things are working as expected, but it would be great to get this fixed, assuming this is indeed the root issue here.
Validation
Resolved in twilio/twilio-node GitHub issue #1076. Community reactions: 2 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep