@almadar/ui 3.2.0 → 3.2.2
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.
|
@@ -81,9 +81,12 @@ export interface TraitStateSnapshot {
|
|
|
81
81
|
/** Declared event keys for this trait (non-empty for healthy trait refs). */
|
|
82
82
|
events: string[];
|
|
83
83
|
/**
|
|
84
|
-
* Entity data keyed by entity name.
|
|
85
|
-
*
|
|
86
|
-
*
|
|
84
|
+
* Entity data keyed by entity name. Uses `EntityRow` from `@almadar/core`
|
|
85
|
+
* — the canonical persisted-entity shape the server returns and the
|
|
86
|
+
* trait reducer stores. Consumers that need full field-level types can
|
|
87
|
+
* cast down to the generated entity (e.g. `data['CartItem'] as CartItem[]`).
|
|
88
|
+
* Snapshot-on-read; mutating the returned arrays does not affect the
|
|
89
|
+
* live reducer.
|
|
87
90
|
*/
|
|
88
91
|
data: Record<string, EntityRow[]>;
|
|
89
92
|
/** Payload of the last event the state machine processed, if any. */
|