@aurigma/design-atoms
Version:
Design Atoms is a part of Customer's Canvas SDK which allows for manipulating individual design elements through your code.
20 lines (19 loc) • 1.02 kB
TypeScript
import { BaseItemsCommand } from "./BaseItemsCommand";
import { IHistoryArgs } from "../ModelUpdateCommand";
import { Item } from "@aurigma/design-atoms-model/Product/Items";
import { ItemsDataApplier } from "../../Services/ItemsDataApplier";
import { ItemType, ICreateItemCommandArgs as ICreateItemCommandArgsAbstraction } from "@aurigma/design-atoms-interfaces";
import { ProductHandler } from "../../Services";
export interface ICreateItemCommandArgs extends ICreateItemCommandArgsAbstraction {
}
export declare class CreateItemCommand extends BaseItemsCommand<ICreateItemCommandArgs, Item> {
private _itemsDataApplier;
constructor(productHandler: ProductHandler, _itemsDataApplier: ItemsDataApplier, historyArgs: IHistoryArgs, args: ICreateItemCommandArgs);
_executeCommandBody(): Promise<Item>;
redo(): Promise<void>;
undo(): Promise<void>;
}
export declare namespace ItemTypeNs {
const isText: (type: ItemType) => boolean;
const getType: (item: Item) => ItemType;
}