Open
Description
This would allow alphabetizing properties/union members when serializing a type like:
declare const t: {
b: "b" | "a"
a: 1
}
attest(t).type.toString.normalizedSnap(`{
a: 1
b: "a" | "b"
}`)
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 the createPrinter
function). Also could potentially join displayParts, but some complexity there as well.
Metadata
Metadata
Assignees
Type
Projects
Status
Backlog