(signalKey: string)
| 111 | * else null. |
| 112 | */ |
| 113 | export function getDeclaredAnnotation(signalKey: string): string | null { |
| 114 | if (!signalKey || typeof signalKey !== 'string') return null; |
| 115 | const dim = primaryDimensionFor(signalKey); |
| 116 | if (!dim) return null; |
| 117 | |
| 118 | const profile = readProfile(); |
| 119 | const declared = profile?.declared?.[dim]; |
| 120 | if (typeof declared !== 'number') return null; |
| 121 | |
| 122 | if (declared >= STRONG_HIGH) return DIMENSION_PHRASING[dim].high; |
| 123 | if (declared <= STRONG_LOW) return DIMENSION_PHRASING[dim].low; |
| 124 | return null; |
| 125 | } |
no test coverage detected