(cat: DebugCategory)
| 141 | * Returns null if the string is not a valid category. |
| 142 | */ |
| 143 | export function categoryToNum(cat: DebugCategory): number | null { |
| 144 | return CATEGORY_STR_TO_NUM.get(cat) ?? null; |
| 145 | } |
| 146 | |
| 147 | /* --- Severity Mapping --- */ |
| 148 |