ICommandDescriptor
ts
interface ICommandDescriptor {
id: string;
run: ICommandHandler;
}
id
- 类型:
string
- 描述:命令的唯一ID
run
- 类型: ICommandHandler
- 描述:当命令被触发时将执行的回调
interface ICommandDescriptor {
id: string;
run: ICommandHandler;
}
string