Skip to content

Invalid Type Definitions #61

@jpeckAMC

Description

@jpeckAMC

Invalid Type Declarations for PhoneCall class

For PhoneCall objects, the contact property is declared to be Not Nullable. However in types.js, the contact property on the PhoneCall instance is not validated or set when the constructor's contact parameter is nullish.

Similarly, the callAttributes field for PhoneCall objects is declared to be Not Nullable. In the constructor for PhoneCall, the callAttributes property is set without checking or validating this parameter, meaning that PhoneCall.callAttributes can potentially be null or undefined.

The type declarations for PhoneCall in types.d.ts should be revised to either require non-null input to the contact and callAttributes parameters of the constructor, or to indicate these properties as nullable. This issue could also be present in other structures defined in the types.d.ts file as well.

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