(value: unknown)
| 103 | } |
| 104 | |
| 105 | function exportValue(value: unknown): string | undefined { |
| 106 | if (typeof value === "string") { |
| 107 | const next = value.trim() |
| 108 | if (next) return next |
| 109 | return |
| 110 | } |
| 111 | if (!isRecord(value)) return |
| 112 | for (const key of ["import", "default"]) { |
| 113 | const next = value[key] |
| 114 | if (typeof next !== "string") continue |
| 115 | const hit = next.trim() |
| 116 | if (!hit) continue |
| 117 | return hit |
| 118 | } |
| 119 | } |
| 120 | |
| 121 | function exportOptions(value: unknown): Record<string, unknown> | undefined { |
| 122 | if (!isRecord(value)) return |
no test coverage detected