(record: Record<string, unknown>)
| 519 | } |
| 520 | |
| 521 | export function compactRecord(record: Record<string, unknown>): Record<string, unknown> { |
| 522 | return Object.fromEntries(Object.entries(record).filter(([, value]) => value !== undefined)); |
| 523 | } |
| 524 | |
| 525 | function optionalField<T>(schema: JsonSchema, read: FieldReader<T>): CommandField<T> { |
| 526 | return { schema, required: false, read }; |
no outgoing calls
no test coverage detected
searching dependent graphs…