(value: unknown, source: string)
| 569 | } |
| 570 | |
| 571 | export function parsePlanTaskValue(value: unknown, source: string): PlanTask { |
| 572 | return parseUnknownWithSchema({ |
| 573 | schema: PlanTaskSchema, |
| 574 | value, |
| 575 | source, |
| 576 | recoveryHint: "Fix the task definition before spawning.", |
| 577 | }); |
| 578 | } |
| 579 | |
| 580 | export function parseStateJson(text: string, source: string): State { |
| 581 | return parseJsonWithSchema({ |
no test coverage detected