You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow for customization of the generated diff enum serde representation.
Currently, each diff is serialized/deserialized using the default Externally tagged enum representation, with the key being the field's name and the value being the updated value. This is difficult to parse effectively and safely in TypeScript since the object lacks a common discriminant field.
By allowing us to change the enum representation, we gain a lot of versatility because we can select between:
Activity
knickish commentedon Jul 4, 2025
I think this is reasonable. I would prefer to solve this by allowing arbitrary pass through to the derived enum type
carlocorradini commentedon Jul 4, 2025
Would you agree with something like the following?