Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/astercloud/aster
/ isValidTypeName
Function
isValidTypeName
ui/src/protocol/registry.ts:47–49 ·
view source on GitHub ↗
(typeName: string)
Source
from the content-addressed store, hash-verified
45
* @returns 是否有效
46
*/
47
export
function
isValidTypeName(typeName: string): boolean {
48
return
/^[a-zA-Z][a-zA-Z0-9]*$/.test(typeName);
49
}
50
51
/**
52
* 组件注册表
Callers
2
registry.spec.ts
File · 0.90
register
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected