Skip to content

Twilio client is of type of any when using Twilio import in typescript #935

@sattarab

Description

@sattarab

Issue Summary

When using Twilio v4 library the Twilio client is of type any.

Steps to Reproduce

import { Twilio } from "twilio/lib"
const twilio_client = new Twilio( <SID>, <AUTH> )

the type of twilio_client is any in version 4 whereas in version 3 it used to be the correct type i.e. TwilioClient.

Code Snippet

import { Twilio } from "twilio/lib"
const twilio_client = new Twilio( <SID>, <AUTH> )

Technical details:

  • twilio-node version: v4
  • node version: v14.17.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions