Accepts types whose values JSON storage round-trips, checked property by property so interfaces without index
signatures (which PersistValue rejects) qualify. A mapped type (rather than a conditional one) lets it
constrain its own type parameter, as in T extends PersistCompatible<T>; arrays and primitives map onto themselves.
Persisted state accepts more, such as dates and maps: see PersistStorableCompatible.
Accepts types whose values JSON storage round-trips, checked property by property so interfaces without index signatures (which PersistValue rejects) qualify. A mapped type (rather than a conditional one) lets it constrain its own type parameter, as in
T extends PersistCompatible<T>; arrays and primitives map onto themselves. Persisted state accepts more, such as dates and maps: seePersistStorableCompatible.