(value: unknown, field: string)
| 92 | } |
| 93 | |
| 94 | function readRequiredText(value: unknown, field: string): string { |
| 95 | const text = readText(value); |
| 96 | if (!text) throw new AppError('INVALID_ARGS', `${field} must be a non-empty string.`); |
| 97 | return text; |
| 98 | } |
| 99 | |
| 100 | function readInteger(value: unknown, field: string): number { |
| 101 | const parsed = |
no test coverage detected