Skip to content

本页由脚本自动生成,请勿手动编辑。如需补充说明,请使用 ::: tip 块。

Defined in: commands/i-command.d.ts:1

Properties

name

ts
name: string;

Defined in: commands/i-command.d.ts:2


timestamp

ts
timestamp: number;

Defined in: commands/i-command.d.ts:3


description?

ts
optional description?: string;

Defined in: commands/i-command.d.ts:4

Methods

execute()

ts
execute(): void;

Defined in: commands/i-command.d.ts:5

Returns

void


undo()

ts
undo(): void;

Defined in: commands/i-command.d.ts:6

Returns

void


redo()

ts
redo(): void;

Defined in: commands/i-command.d.ts:7

Returns

void


canMergeWith()?

ts
optional canMergeWith(command): boolean;

Defined in: commands/i-command.d.ts:8

Parameters

ParameterType
commandICommand

Returns

boolean


mergeWith()?

ts
optional mergeWith(command): ICommand;

Defined in: commands/i-command.d.ts:9

Parameters

ParameterType
commandICommand

Returns

ICommand

基于 MIT 许可发布