in packages/prettier-plugin-vertical-align/src/printer.ts [152:160]
function valueField(node: AstPath["node"]) {
if (node.type === "Property" || node.type === "ObjectProperty") {
return "value";
}
if (node.type === "TSPropertySignature" || node.type === "PropertyDefinition") {
return "typeAnnotation";
}
throw new Error(`Unexpected node type: ${node.type}`);
}