(value: unknown)
| 2934 | } |
| 2935 | |
| 2936 | function labelNames(value: unknown): string[] { |
| 2937 | if (!Array.isArray(value)) return []; |
| 2938 | return value |
| 2939 | .map((label) => { |
| 2940 | if (typeof label === "string") return label; |
| 2941 | const name = asRecord(label).name; |
| 2942 | return typeof name === "string" ? name : null; |
| 2943 | }) |
| 2944 | .filter((name): name is string => Boolean(name)); |
| 2945 | } |
| 2946 | |
| 2947 | function normalizeAuthorAssociation(value: unknown): string { |
| 2948 | return typeof value === "string" && value.trim() ? value.trim().toUpperCase() : "NONE"; |
no test coverage detected