mattermost-redux
Version:
Common code (API client, Redux stores, logic, utility functions) for building a Mattermost client
15 lines (14 loc) • 925 B
TypeScript
import type { ChannelCategory } from '@mattermost/types/channel_categories';
import type { Team } from '@mattermost/types/teams';
import type { IDMappedObjects, RelationOneToOne } from '@mattermost/types/utilities';
import type { MMReduxAction } from 'mattermost-redux/action_types';
export declare function byId(state: IDMappedObjects<ChannelCategory> | undefined, action: MMReduxAction): IDMappedObjects<ChannelCategory>;
export declare function orderByTeam(state: RelationOneToOne<Team, Array<ChannelCategory["id"]>> | undefined, action: MMReduxAction): RelationOneToOne<Team, string[]>;
declare const _default: import("redux").Reducer<{
byId: IDMappedObjects<ChannelCategory>;
orderByTeam: RelationOneToOne<Team, string[]>;
}, import("redux").AnyAction, Partial<{
byId: IDMappedObjects<ChannelCategory> | undefined;
orderByTeam: RelationOneToOne<Team, string[]> | undefined;
}>>;
export default _default;