Skip to content

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

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

Extended by

Implements

Constructors

Constructor

ts
new BaseCommand(host, description?): BaseCommand;

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

Parameters

ParameterType
hostEditorHost
description?string

Returns

BaseCommand

Properties

name

ts
abstract name: string;

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

Implementation of

ICommand.name


timestamp

ts
timestamp: number;

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

Implementation of

ICommand.timestamp


description?

ts
optional description?: string;

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

Implementation of

ICommand.description

Methods

execute()

ts
abstract execute(): void;

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

Returns

void

Implementation of

ICommand.execute


undo()

ts
abstract undo(): void;

Defined in: commands/base-command.d.ts:10

Returns

void

Implementation of

ICommand.undo


redo()

ts
redo(): void;

Defined in: commands/base-command.d.ts:11

Returns

void

Implementation of

ICommand.redo


canMergeWith()?

ts
optional canMergeWith(command): boolean;

Defined in: commands/base-command.d.ts:12

Parameters

ParameterType
commandICommand

Returns

boolean

Implementation of

ICommand.canMergeWith


mergeWith()?

ts
optional mergeWith(command): ICommand;

Defined in: commands/base-command.d.ts:13

Parameters

ParameterType
commandICommand

Returns

ICommand

Implementation of

ICommand.mergeWith

基于 MIT 许可发布