UNPKG

mattermost-redux

Version:

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

6 lines (5 loc) 580 B
import type { Channel, ChannelMessageCount, ServerChannel } from '@mattermost/types/channels'; import type { RelationOneToOne } from '@mattermost/types/utilities'; import type { MMReduxAction } from 'mattermost-redux/action_types'; export default function messageCounts(state: RelationOneToOne<Channel, ChannelMessageCount> | undefined, action: MMReduxAction): RelationOneToOne<Channel, ChannelMessageCount>; export declare function updateMessageCount(state: RelationOneToOne<Channel, ChannelMessageCount>, channel: ServerChannel): RelationOneToOne<Channel, ChannelMessageCount>;