UNPKG

@trycourier/courier-ui-inbox

Version:

Inbox components for the Courier web UI

13 lines (12 loc) 773 B
import { CourierInboxFeedType } from '../types/feed-type'; import { InboxDataSet } from '../types/inbox-data-set'; import { InboxMessage } from '../../@trycourier/courier-js/src'; export declare class CourierInboxDatastoreEvents { onDataSetChange?(dataSet: InboxDataSet, feedType: CourierInboxFeedType): void; onPageAdded?(dataSet: InboxDataSet, feedType: CourierInboxFeedType): void; onUnreadCountChange?(unreadCount: number): void; onMessageAdd?(message: InboxMessage, index: number, feedType: CourierInboxFeedType): void; onMessageRemove?(message: InboxMessage, index: number, feedType: CourierInboxFeedType): void; onMessageUpdate?(message: InboxMessage, index: number, feedType: CourierInboxFeedType): void; onError?(error: Error): void; }