(record: Record<string, unknown>, key: string)
| 68 | } |
| 69 | |
| 70 | export function readDeviceTarget(record: Record<string, unknown>, key: string): DeviceTarget { |
| 71 | return readOptional(record, key, parseDeviceTarget) ?? 'mobile'; |
| 72 | } |
| 73 | |
| 74 | export function parseRect(value: unknown): Rect | undefined { |
| 75 | if (!isRecord(value)) return undefined; |
nothing calls this directly
no test coverage detected