MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / asOneOf

Function asOneOf

graph-ui/src/galaxy/density.ts:310–312  ·  view source on GitHub ↗
(value: unknown, allowed: readonly T[], fallback: T)

Source from the content-addressed store, hash-verified

308}
309
310function asOneOf<T>(value: unknown, allowed: readonly T[], fallback: T): T {
311 return allowed.includes(value as T) ? (value as T) : fallback;
312}
313
314/**
315 * Was aus dem Speicher kam, auf zulaessige Werte zurechtstutzen.

Callers 1

clampDisplaySettingsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected