(patch: ShellRunPatch)
| 369 | } |
| 370 | |
| 371 | export function assertShellRunPatch(patch: ShellRunPatch): void { |
| 372 | for (const key of Object.keys(patch)) { |
| 373 | if (!SHELL_RUN_PATCH_KEYS.has(key)) { |
| 374 | throw new Error(`ShellRun field is immutable: ${key}`); |
| 375 | } |
| 376 | } |
| 377 | } |
| 378 | |
| 379 | /** |
| 380 | * Applies a validated patch and returns the next record, or `current` unchanged |
no test coverage detected