delete 从列表中删除模块
delete
类型: MethodDeclaration
所属类: ModuleList
定义位置: util.ts
描述
从列表中删除模块
参数 key: 模块的键
参数
| 参数名 | 类型 | 描述 | 默认值 | 
|---|---|---|---|
| key | string | - | - | 
返回值
类型: void
源代码
位置: 第 534 行
public delete(key: string): void {
    const map = this.moduleMap
    const module = map[key]
    if (module) {
      this.remove(module)
      delete map[key]
    }
  }
文档生成时间:2025/7/21 20:53:39