FluidFramework
FluidFramework copied to clipboard
feat(client): JsonSerializable and JsonDeserialized
Add pair of type filters for JSON based serialization.
JsonSerializable<T>
produces type representing limitations of serializing T
. Incompatible elements are transformed to never
or SerializationError*
types that orignal T
is not assignable to.
JsonDeserialized<T>
produces type representing result of T
being serialized and then deserialized.
JsonSerializable
should eventually replace @fluidframework/datastore-definitions
's Jsonable
. That cannot done be currently as it would be a compile-time breaking change.
Supporting Changes
Add standard test infrastructure