Turns the JSON that the API, the socket and the browser's storage hand back, where dates are ISO strings (Wire), into the shared types with Dates. Every reader of those sources calls these on what it receives. The shape is not checked.

Functions

f
hydrateDump(raw: unknown): Dump

Returns raw as a Dump, for useFeedCache, which reads it back untyped from sessionStorage.

f
hydrateNotification(raw: unknown): Notification

Returns raw as a Notification, for useFeedCache, which reads it back untyped from sessionStorage.

f
hydratePlaylist(raw: unknown): Playlist

Returns raw as a Playlist, for useFeedCache, which reads it back untyped from sessionStorage.