@esfaenza/flow-builder 20.3.7 → 20.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts
CHANGED
|
@@ -1652,8 +1652,16 @@ declare const ORCHESTRATION_CONDITION_OUTPUT = "isOrchestrationConditionMet";
|
|
|
1652
1652
|
*/
|
|
1653
1653
|
/** Le tre gravita' su cui l'interfaccia decide: colore, icona, filtro, attivazione. */
|
|
1654
1654
|
type FlowSeverityBucket = 'Error' | 'Warning' | 'Info';
|
|
1655
|
-
/**
|
|
1656
|
-
|
|
1655
|
+
/**
|
|
1656
|
+
* Un livello sconosciuto e' una nota: si mostra, non si nasconde.
|
|
1657
|
+
*
|
|
1658
|
+
* Il parametro e' `unknown` di proposito: `FlowIssueSeverity` promette una stringa, ma il tipo
|
|
1659
|
+
* e' aperto perche' il backend decide i livelli (§13.11) e in un ambiente reale e' arrivato un
|
|
1660
|
+
* valore che **non** era una stringa — `severity.trim is not a function`. Un `TypeError` qui
|
|
1661
|
+
* uccide il `computed` dei conteggi e con esso l'intero pannello dei problemi, quindi la
|
|
1662
|
+
* normalizzazione accetta qualunque forma e non lancia mai.
|
|
1663
|
+
*/
|
|
1664
|
+
declare function severityBucket(severity: unknown): FlowSeverityBucket;
|
|
1657
1665
|
/** L'ordine in cui si presentano: prima cio' che blocca l'attivazione. */
|
|
1658
1666
|
declare const SEVERITY_BUCKETS: readonly FlowSeverityBucket[];
|
|
1659
1667
|
declare const SEVERITY_LABEL: Record<FlowSeverityBucket, string>;
|