MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / isValidationIssue

Function isValidationIssue

apps/kimi-code/src/cli/sub/doctor.ts:305–312  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

303}
304
305function isValidationIssue(value: unknown): value is KimiConfigValidationIssue {
306 if (!isRecord(value) || typeof value['message'] !== 'string') return false;
307 const path = value['path'];
308 return (
309 Array.isArray(path) &&
310 path.every((segment) => typeof segment === 'string' || typeof segment === 'number')
311 );
312}
313
314function isRecord(value: unknown): value is Record<string, unknown> {
315 return typeof value === 'object' && value !== null;

Callers

nothing calls this directly

Calls 1

isRecordFunction · 0.70

Tested by

no test coverage detected