(value: unknown)
| 633 | } |
| 634 | |
| 635 | function stringRecordParam(value: unknown): Record<string, string> | undefined { |
| 636 | if (value === undefined) return undefined |
| 637 | const record = asRecord(value) |
| 638 | const result: Record<string, string> = {} |
| 639 | for (const [key, nested] of Object.entries(record)) { |
| 640 | if (typeof nested === "string") result[key] = nested |
| 641 | } |
| 642 | return result |
| 643 | } |
| 644 | |
| 645 | function taskMetadataUpdateParams(params: unknown): OpenADETaskMetadataUpdateRequest { |
| 646 | const record = asRecord(params) |
no test coverage detected