MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / parseRuleScope

Function parseRuleScope

src/core/webview/rulesMessageHandler.ts:164–166  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

162}
163
164function parseRuleScope(value: unknown): RuleScope | undefined {
165 return value === "global" || value === "project" ? value : undefined
166}
167
168function parseRuleKind(value: unknown): RuleKind | undefined {
169 return value === "generic" || value === "mode" ? value : undefined

Callers 2

parseCreateRuleInputFunction · 0.85
parseDeleteRuleInputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected