hydrateData
Hydrates (deserializes) a single value that was stored by the workflow runtime. This is the lower-level building block behind hydrateResourceIO(). Use it when you have a raw serialized value rather than a whole resource, such as a single field from an event payload.
API signature
Parameters
| Parameter | Type | Description |
|---|---|---|
value | unknown | The serialized value from workflow storage |
revivers | Revivers | Reviver functions for deserialization. Use observabilityRevivers for standard use. |
Returns
The hydrated plain JavaScript value. The input is handled by shape:
- Format-prefixed binary data (
Uint8Array) is decoded and parsed from the devalue format. - Encrypted data is returned as-is (a raw
Uint8Array). See Encrypted data. - Already-plain values (numbers, strings, and
null) are returned unchanged.