Describe the bug
Updating @twilio-labs/serverless-runtime-types from version 2.2.3 to 4.0.0 makes tsc fail with Module '"twilio/lib/rest/Twilio"' has no exported member 'TwilioClientOptions'. Indeed, I don't see it defined there.
To Reproduce
Steps to reproduce the behavior:
Current dependency in package.json is "@twilio-labs/serverless-runtime-types": "^2.2.3", (the latest <3 version)
Update to version 4.0.0 with npm install '@twilio-labs/serverless-runtime-types@4'
Run npx tsc
See error
Expected behavior
tsc fails with
node_modules/@twilio-labs/serverless-runtime-types/types.d.ts:5:10 - error TS2305: Module '"twilio/lib/rest/Twilio"' has no exported member 'TwilioClientOptions'.
5 import { TwilioClientOptions } from 'twilio/lib/rest/Twilio';
~~~~~~~~~~~~~~~~~~~
node_modules/@twilio-labs/serverless-runtime-types/types.d.ts:415:10 - error TS2305: Module '"twilio/lib/rest/Twilio"' has no exported member 'TwilioClientOptions'.
415 export { TwilioClientOptions } from 'twilio/lib/rest/Twilio';
~~~~~~~~~~~~~~~~~~~
Found 2 errors in the same file, starting at: node_modules/@twilio-labs/serverless-runtime-types/types.d.ts:5
Screenshots
Desktop
OS: macOS
twilio-cli/5.20.0 darwin-x64 node-v18.20.2
@twilio-labs/serverless-runtime-types@4.0.0
Additional context
I see TwilioClientOptions does not seem to exist in the twilio package starting with version 4, @twilio-labs/serverless-runtime-types@2.2.3 used twilio@3.84.1, and @twilio-labs/serverless-runtime-types@4.0.0 uses twilio@4.23.0. As far as I see, TwilioClientOptions was removed in commit b471067195b2e67d8073d70db6432cb14609fedb and never added back.
Thank you so much for opening your first issue in this project! We'll try to get back to it as quickly as possible. While you are waiting...here's a random picture of a corgi (powered by dog.ceo)
Describe the bug Updating @twilio-labs/serverless-runtime-types from version 2.2.3 to 4.0.0 makes tsc fail with
Module '"twilio/lib/rest/Twilio"' has no exported member 'TwilioClientOptions'
. Indeed, I don't see it defined there.To Reproduce Steps to reproduce the behavior:
"@twilio-labs/serverless-runtime-types": "^2.2.3",
(the latest <3 version)"types": ["./node_modules/@twilio-labs/serverless-runtime-types/index.d.ts"],
npx tsc
works without errorsnpm install '@twilio-labs/serverless-runtime-types@4'
npx tsc
Expected behavior tsc fails with
Screenshots
Desktop
Additional context I see TwilioClientOptions does not seem to exist in the twilio package starting with version 4, @twilio-labs/serverless-runtime-types@2.2.3 used twilio@3.84.1, and @twilio-labs/serverless-runtime-types@4.0.0 uses twilio@4.23.0. As far as I see, TwilioClientOptions was removed in commit b471067195b2e67d8073d70db6432cb14609fedb and never added back.