mattermost-redux
Version:
Common code (API client, Redux stores, logic, utility functions) for building a Mattermost client
13 lines (12 loc) • 1 kB
TypeScript
import type { AnyAction } from 'redux';
import type { Team } from '@mattermost/types/teams';
import type { ThreadsState, UserThread } from '@mattermost/types/threads';
import type { RelationOneToMany } from '@mattermost/types/utilities';
import type { MMReduxAction } from 'mattermost-redux/action_types';
import type { ExtraData } from './types';
type State = ThreadsState['threadsInTeam'] | ThreadsState['unreadThreadsInTeam'];
export declare function handleReceivedThread(state: State, action: AnyAction, extra: ExtraData): RelationOneToMany<Team, UserThread>;
export declare function handleFollowChanged(state: State, action: AnyAction, extra: ExtraData): RelationOneToMany<Team, UserThread>;
export declare const threadsInTeamReducer: (state: ThreadsState["threadsInTeam"] | undefined, action: MMReduxAction, extra: ExtraData) => {};
export declare const unreadThreadsInTeamReducer: (state: ThreadsState["unreadThreadsInTeam"] | undefined, action: MMReduxAction, extra: ExtraData) => {};
export {};