MCPcopy Create free account
hub / github.com/ShipSecAI/studio / isComponentCategory

Function isComponentCategory

packages/shared/src/component-categories.ts:246–248  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

244];
245
246export function isComponentCategory(value: string): value is ComponentCategory {
247 return (COMPONENT_CATEGORIES as readonly string[]).includes(value);
248}
249
250export function normalizeComponentCategory(value?: string | null): ComponentCategory | null {
251 if (!value) {

Callers 3

SidebarFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected