mirror of
https://github.com/pawelmalak/flame.git
synced 2026-03-06 20:43:13 +08:00
44 lines
835 B
TypeScript
44 lines
835 B
TypeScript
import { ActionType } from '../action-types';
|
|
import { App } from '../../interfaces';
|
|
|
|
export interface GetAppsAction<T> {
|
|
type:
|
|
| ActionType.getApps
|
|
| ActionType.getAppsSuccess
|
|
| ActionType.getAppsError;
|
|
payload: T;
|
|
}
|
|
export interface PinAppAction {
|
|
type: ActionType.pinApp;
|
|
payload: App;
|
|
}
|
|
|
|
export interface AddAppAction {
|
|
type: ActionType.addAppSuccess;
|
|
payload: App;
|
|
}
|
|
export interface DeleteAppAction {
|
|
type: ActionType.deleteApp;
|
|
payload: number;
|
|
}
|
|
|
|
export interface UpdateAppAction {
|
|
type: ActionType.updateApp;
|
|
payload: App;
|
|
}
|
|
|
|
export interface ReorderAppsAction {
|
|
type: ActionType.reorderApps;
|
|
payload: App[];
|
|
}
|
|
|
|
export interface SortAppsAction {
|
|
type: ActionType.sortApps;
|
|
payload: string;
|
|
}
|
|
|
|
export interface SetEditAppAction {
|
|
type: ActionType.setEditApp;
|
|
payload: App | null;
|
|
}
|