(input: unknown)
| 267 | } |
| 268 | |
| 269 | export function readInputRecord(input: unknown): Record<string, unknown> { |
| 270 | if (input === undefined || input === null) return {}; |
| 271 | if (!input || typeof input !== 'object' || Array.isArray(input)) { |
| 272 | throw new Error('Expected object arguments.'); |
| 273 | } |
| 274 | return input as Record<string, unknown>; |
| 275 | } |
| 276 | |
| 277 | export function readCommonInput( |
| 278 | record: Record<string, unknown>, |
no outgoing calls
no test coverage detected
searching dependent graphs…