(value: unknown)
| 13 | } |
| 14 | |
| 15 | function isRecord(value: unknown): value is Record<string, unknown> { |
| 16 | return typeof value === 'object' && value !== null && !Array.isArray(value) |
| 17 | } |
| 18 | |
| 19 | export function isEvidencePayload(value: unknown): value is ChatEvidencePayload { |
| 20 | return isRecord(value) && value.version === 1 && typeof value.query === 'string' && Array.isArray(value.groups) |
no outgoing calls
no test coverage detected