mattermost-redux
Version:
Common code (API client, Redux stores, logic, utility functions) for building a Mattermost client
48 lines (47 loc) • 1.16 kB
TypeScript
import type { CloudUsage } from '@mattermost/types/cloud';
import type { MMReduxAction } from 'mattermost-redux/action_types';
export default function usage(state: CloudUsage | undefined, action: MMReduxAction): {
messages: {
history: any;
historyLoaded: boolean;
};
files: {
totalStorage: number;
totalStorageLoaded: boolean;
};
teams: import("@mattermost/types/cloud").TeamsUsage;
} | {
files: {
totalStorage: any;
totalStorageLoaded: boolean;
};
messages: {
history: number;
historyLoaded: boolean;
};
teams: import("@mattermost/types/cloud").TeamsUsage;
} | {
boards: {
cards: any;
cardsLoaded: boolean;
};
files: {
totalStorage: number;
totalStorageLoaded: boolean;
};
messages: {
history: number;
historyLoaded: boolean;
};
teams: import("@mattermost/types/cloud").TeamsUsage;
} | {
teams: any;
files: {
totalStorage: number;
totalStorageLoaded: boolean;
};
messages: {
history: number;
historyLoaded: boolean;
};
};