Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the 'to' property in the 'IMessagesResult' needs to be an Array #19

Open
cgjangid opened this issue Aug 21, 2024 · 0 comments
Open

the 'to' property in the 'IMessagesResult' needs to be an Array #19

cgjangid opened this issue Aug 21, 2024 · 0 comments

Comments

@cgjangid
Copy link

In the below IMessagesResult interface in the types.d.ts file, the to field needs to be an Array.
The IMessagesResult received from a getMessage or a getMessages always has the to field as an array. However this interface has it as an object and not an array of the object. It needs to be corrected by updating it to an array.

/** getMessages() */
interface IMessagesResult {
    id: string;
    accountId: string;
    msgid: string;
    from: {
        address: string;
        name: string;
    };
    to: {
        address: string;
        name: string;
    };
    subject: string;
    intro: string;
    seen: boolean;
    isDeleted: boolean;
    hasAttachments: boolean;
    size: number;
    downloadUrl: string;
    createdAt: string;
    updatedAt: string;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant