MCPcopy Create free account
hub / github.com/VirtualHotBar/NetMount / validateParameters

Function validateParameters

src/controller/storage/create.ts:42–47  ·  view source on GitHub ↗

* 验证参数

(parameters: ParametersType)

Source from the content-addressed store, hash-verified

40 * 验证参数
41 */
42function validateParameters(parameters: ParametersType): string | null {
43 if (!parameters || typeof parameters !== 'object') {
44 return '存储参数不能为空'
45 }
46 return null
47}
48
49/**
50 * 统一输入验证

Callers 1

validateStorageInputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected