FluidFramework icon indicating copy to clipboard operation
FluidFramework copied to clipboard

feat(client): JsonSerializable and JsonDeserialized

Open jason-ha opened this issue 8 months ago • 3 comments

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.

AB#6887

Supporting Changes

Add standard test infrastructure

jason-ha avatar Jul 01 '24 07:07 jason-ha