(value: unknown)
| 303 | } |
| 304 | |
| 305 | function 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 | |
| 314 | function isRecord(value: unknown): value is Record<string, unknown> { |
| 315 | return typeof value === 'object' && value !== null; |
nothing calls this directly
no test coverage detected