Thème
Superviseur — Frontend / features/panel/panel-snapshot.utils / normalizePanelType
Fonction: normalizePanelType()
ts
function normalizePanelType(type): string | undefined;Défini dans: features/panel/panel-snapshot.utils.ts:20
Normalise le type de centrale incendie reçu de l'API (gère les alias numériques '0'/'1').
Paramètres
| Paramètre | Type | Description |
|---|---|---|
type | string | number | undefined | Valeur brute du type de centrale. |
Retourne
string | undefined
Type normalisé ou undefined si absent.