core-cde
Version:
41 lines (40 loc) • 1.69 kB
TypeScript
import { ICoverProps, IPage, IRenamePage, ISelectpage } from '../interfaces/IPageProps';
import { Action } from './Action';
export declare enum EPageActions {
createPage = "createPage",
removePage = "removePage",
selectPage = "selectPage",
renamePage = "renamePage",
createCover = "createCover",
removeCover = "removeCover"
}
export declare class SelectPageAction extends Action<ISelectpage> {
readonly type = EPageActions.selectPage;
}
export declare class CreatePageAction extends Action<IPage> {
prev_guid: string;
next_guid: string;
readonly type = EPageActions.createPage;
constructor(props: IPage, documentId: string, pageId: string, prev_guid: string, next_guid: string);
/**
* Получить объект для сериализации
* @returns Объект для сериализации
*/
toJSON(): any;
}
export declare class RemovePageAction extends Action<IPage> {
prev_guid: string;
next_guid: string;
readonly type = EPageActions.removePage;
constructor(props: IPage, documentId: string, pageId: string, prev_guid: string, next_guid: string);
}
export declare class RenamePageAction extends Action<IRenamePage> {
readonly type = EPageActions.renamePage;
}
export declare class CreateCoverAction extends Action<ICoverProps> {
readonly type = EPageActions.createCover;
}
export declare class RemoveCoverAction extends Action<ICoverProps> {
readonly type = EPageActions.removeCover;
}
export declare type PageActions = SelectPageAction | RenamePageAction | CreatePageAction | RemovePageAction | CreateCoverAction | RemoveCoverAction;