(record: Record<string, unknown>, key: string)
| 275 | } |
| 276 | |
| 277 | function readRequiredInteger(record: Record<string, unknown>, key: string): number { |
| 278 | const value = record[key]; |
| 279 | if (typeof value !== 'number' || !Number.isSafeInteger(value)) { |
| 280 | throw new AppError('INVALID_ARGS', `${key} must be an integer`); |
| 281 | } |
| 282 | return value; |
| 283 | } |
| 284 | |
| 285 | function readRequiredArtifactType(record: Record<string, unknown>): 'file' | 'app-bundle' { |
| 286 | const value = readRequiredText(record, 'artifactType'); |
no outgoing calls
no test coverage detected
searching dependent graphs…