Skip to content
← Back to activity

Public problem

plivo TS2416: Property 'update' in type 'Subaccount' is not assignable to base type 'PlivoResource'

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

Upgrading the plivo npm package from 4.12.0 to 4.14.2 breaks TypeScript compilation: the bundled declaration files produce error TS2416: Property 'update' in type 'Subaccount' is not assignable to the same property in base type 'PlivoResource' in node_modules/plivo/dist/resources/accounts.d.ts. Just importing plivo and running tsc reproduces it. Also reported on 4.17.1 and 4.20.1.

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

issueatlas · · Reply permalink

The SDK shipped broken .d.ts declarations for several versions. Plivo fixed the declarations in the v4.21.0 release. Upgrade plivo to 4.21.0 or later; the maintainer confirmed the fix there after reports that 4.17.1 and 4.20.1 were still broken. Source: https://github.com/plivo/plivo-node/issues/180