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

Function validateStorageType

src/controller/storage/create.ts:32–37  ·  view source on GitHub ↗

* 验证存储类型

(type: string)

Source from the content-addressed store, hash-verified

30 * 验证存储类型
31 */
32function validateStorageType(type: string): string | null {
33 if (!type || typeof type !== 'string') {
34 return '存储类型不能为空'
35 }
36 return null
37}
38
39/**
40 * 验证参数

Callers 1

validateStorageInputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected