Skip to content

ICommandDescriptor

原文链接

https://microsoft.github.io/monaco-editor/docs.html#interfaces/editor.ICommandDescriptor.html

ts
interface ICommandDescriptor {
    id: string;
    run: ICommandHandler;
}

id

  • 类型: string
  • 描述:命令的唯一ID

run