(value: Record<string, unknown>, key: string)
| 242 | } |
| 243 | |
| 244 | function optionalNumber(value: Record<string, unknown>, key: string): number | null | undefined { |
| 245 | if (!hasOwn(value, key)) return undefined; |
| 246 | const raw = value[key]; |
| 247 | return typeof raw === 'number' ? raw : null; |
| 248 | } |
| 249 | |
| 250 | function isStringArray(value: unknown[]): value is string[] { |
| 251 | return value.every((option) => typeof option === 'string'); |
no test coverage detected