drishti/src/client/types.tsx
Eli Ribble ee872f6985 Select a mailbox on click, show its email IDs
We'll eventually want to populate them.
2024-08-28 01:08:27 -07:00

17 lines
440 B
TypeScript

import client from "jmap-client-ts/lib/types";
export interface IMailbox extends client.IMailboxProperties {
emailIds: Array<string> | null;
emails: Array<client.IEmailProperties> | null;
}
export interface IAccount extends client.IAccount {
id: string;
mailboxes: Array<IMailbox> | null;
}
export type AccountIdMap = { [accountId: string]: IAccount };
export interface ISession extends client.ISession {
accounts: AccountIdMap;
}