Skip to content

TypeScript errors in 6.0.2 #1187

Description

@Methuselah96

When I run type-checking with the latest version of twilio with skipLibCheck set to false, I get the following type errors:

./node_modules/twilio/lib/rest/intelligence/v3/conversation.d.ts(203,5): error TS2717: Subsequent property declarations must have the same type.  Property 'name' must be of type 'string | null | undefined', but here has type 'string | undefined'.
./node_modules/twilio/lib/rest/intelligence/v3/conversation.d.ts(204,5): error TS2717: Subsequent property declarations must have the same type.  Property 'type' must be of type 'string | null | undefined', but here has type 'string | undefined'.
./node_modules/twilio/lib/rest/voice/v3/transcription.d.ts(234,5): error TS2717: Subsequent property declarations must have the same type.  Property 'conversationConfigurationId' must be of type 'string | null | undefined', but here has type 'string | undefined'.
./node_modules/twilio/lib/rest/voice/v3/transcription.d.ts(252,5): error TS2717: Subsequent property declarations must have the same type.  Property 'mediaUrl' must be of type 'string | null | undefined', but here has type 'string | undefined'.
./node_modules/twilio/lib/rest/voice/v3/transcription.d.ts(253,5): error TS2717: Subsequent property declarations must have the same type.  Property 'sourceId' must be of type 'string | null | undefined', but here has type 'string | undefined'.
./node_modules/twilio/lib/rest/voice/v3/transcription.d.ts(255,5): error TS2717: Subsequent property declarations must have the same type.  Property 'conversationId' must be of type 'string | null | undefined', but here has type 'string | undefined'.
./node_modules/twilio/lib/rest/voice/v3/transcription.d.ts(257,5): error TS2717: Subsequent property declarations must have the same type.  Property 'duration' must be of type 'number | null | undefined', but here has type 'number | undefined'.
./node_modules/twilio/lib/rest/voice/v3/transcription.d.ts(269,5): error TS2717: Subsequent property declarations must have the same type.  Property 'events' must be of type 'string[] | null | undefined', but here has type 'string[] | undefined'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions