MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / parseColorMode

Function parseColorMode

packages/core/src/repro/schema.ts:317–322  ·  view source on GitHub ↗
(value: unknown, path: string)

Source from the content-addressed store, hash-verified

315}
316
317function parseColorMode(value: unknown, path: string): ReproParseResult<ColorMode> {
318 if (typeof value !== "number" || !Number.isInteger(value) || value < 0 || value > 3) {
319 return fail("ZR_REPRO_INVALID_BUNDLE", path, "colorMode must be an integer in [0, 3]");
320 }
321 return ok(value as ColorMode);
322}
323
324function parseTerminalCapsSnapshot(
325 value: unknown,

Callers 1

Calls 2

failFunction · 0.70
okFunction · 0.70

Tested by

no test coverage detected