(record: Record<string, unknown>, key: string)
| 64 | } |
| 65 | |
| 66 | export function readRequiredDeviceKind(record: Record<string, unknown>, key: string): DeviceKind { |
| 67 | return readRequired(record, key, parseDeviceKind, `Daemon response has invalid "${key}".`); |
| 68 | } |
| 69 | |
| 70 | export function readDeviceTarget(record: Record<string, unknown>, key: string): DeviceTarget { |
| 71 | return readOptional(record, key, parseDeviceTarget) ?? 'mobile'; |
no test coverage detected