MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / register

Method register

packages/parser/src/sniffer.ts:68–72  ·  view source on GitHub ↗

* 注册格式模块

(module: FormatModule)

Source from the content-addressed store, hash-verified

66 * 注册格式模块
67 */
68 register(module: FormatModule): void {
69 this.formats.push(module)
70 // 按优先级排序(优先级数字越小越靠前)
71 this.formats.sort((a, b) => a.feature.priority - b.feature.priority)
72 }
73
74 /**
75 * 批量注册格式模块

Callers 4

registerAllMethod · 0.95
startInternalServerFunction · 0.80
startHttpServerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected