(value: unknown)
| 48 | } |
| 49 | |
| 50 | function stringRecord(value: unknown): Record<string, string> | undefined { |
| 51 | if (!isRecord(value)) return undefined |
| 52 | const result: Record<string, string> = {} |
| 53 | for (const [key, nested] of Object.entries(value)) { |
| 54 | if (typeof nested === "string" && nested.length > 0) result[key] = nested |
| 55 | } |
| 56 | return result |
| 57 | } |
| 58 | |
| 59 | function queuedTurns(value: unknown): OpenADEQueuedTurn[] | undefined { |
| 60 | if (!Array.isArray(value)) return undefined |