Importing @vonage/server-sdk causes error TS2694: ConversationAction / StreamAction has no exported member

With @vonage/server-sdk installed, importing Vonage from @vonage/server-sdk in a TypeScript project produces errors inside the SDK's own type files: error TS2694: Namespace .../@vonage/voice/dist/types has no exported member 'ConversationAction' and the same for StreamAction in Stream.d.ts. The project had skipLibCheck explicitly set to false in tsconfig.json. Reported against server-sdk 3.7.x with Node 20.

The errors come from type-checking the SDK's bundled .d.ts files. Vonage's supported setup is skipLibCheck: true in tsconfig.json; setting it to false surfaces internal typing mismatches in @vonage/voice (e.g. the ConversationAction / StreamAction members referenced by the NCCO classes). Turn skipLibCheck back on and the errors disappear. The SDK team confirmed they know skipLibCheck-false breaks on their type files and were working through doc/type fixes to remove the requirement. Source: https://github.com/Vonage/vonage-node-sdk/issues/847

Source: https://github.com/Vonage/vonage-node-sdk/issues/847