(value: unknown)
| 606 | } |
| 607 | |
| 608 | export function validateRuntimeListParams(value: unknown): RuntimeValidationResult<RuntimeListParams> { |
| 609 | const record = paramsRecord(value) |
| 610 | if (!record.ok) return record |
| 611 | |
| 612 | const ownerType = optionalString(record.value, "ownerType") |
| 613 | if (!ownerType.ok) return ownerType |
| 614 | const ownerId = optionalString(record.value, "ownerId") |
| 615 | if (!ownerId.ok) return ownerId |
| 616 | |
| 617 | return { |
| 618 | ok: true, |
| 619 | value: { |
| 620 | ...(ownerType.value ? { ownerType: ownerType.value } : {}), |
| 621 | ...(ownerId.value ? { ownerId: ownerId.value } : {}), |
| 622 | }, |
| 623 | } |
| 624 | } |
| 625 | |
| 626 | export function validateRuntimeIdParams(value: unknown): RuntimeValidationResult<RuntimeIdParams> { |
| 627 | const record = paramsRecord(value) |
nothing calls this directly
no test coverage detected