UNPKG

mattermost-redux

Version:

Common code (API client, Redux stores, logic, utility functions) for building a Mattermost client

35 lines (34 loc) 1.11 kB
import type { Post } from './posts'; import type { Team } from './teams'; import type { Channel } from './channels'; import type { UserProfile } from './users'; import type { $ID, IDMappedObjects, RelationOneToMany, RelationOneToOne } from './utilities'; export declare type UserThread = { id: string; reply_count: number; last_reply_at: number; last_viewed_at: number; participants: Array<{ id: $ID<UserProfile>; } | UserProfile>; post: Post; unread_replies: number; unread_mentions: number; is_following?: boolean; }; export declare type UserThreadList = { total: number; total_unread_threads: number; total_unread_mentions: number; threads: UserThread[]; }; export declare type ThreadsState = { threadsInTeam: RelationOneToMany<Team, UserThread>; threads: IDMappedObjects<UserThread>; counts: RelationOneToOne<Team, { total: number; total_unread_threads: number; total_unread_mentions: number; unread_mentions_per_channel: Record<$ID<Channel>, number>; }>; };