attest: add option to normalize property/union order when serializing types #1270
Labels
external-contributor-friendly
Doesn't rely heavily on contextual knowledge of ArkType (may still be complex)
This would allow alphabetizing properties/union members when serializing a type like:
Can be useful for property order that can change across versions
Have considered patching tsc (although it seems hard to access
emitObjectLiteralExpression
externally since it is defined in thecreatePrinter
function). Also could potentially join displayParts, but some complexity there as well.The text was updated successfully, but these errors were encountered: