跳到主要内容

get 获取模块

get

类型: MethodDeclaration

所属类: ModuleList

定义位置: util.ts

描述

获取模块

参数 key: 模块的键

返回值:设置了此键的模块

参数

参数名类型描述默认值
keystring--

返回值

类型: T \| undefined

设置了此键的模块

源代码

位置: 第 483 行

public get(key: string): T | undefined {
return this.moduleMap[key]
}

文档生成时间:2025/7/7 12:07:07