We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8eaeabd commit 0cf157aCopy full SHA for 0cf157a
ving/generator/vingrecord.mjs
@@ -71,9 +71,7 @@ const describeExample = ({ bare }) => {
71
`;
72
}
73
74
-const describeLinksExample = ({ bare, name }) => {
75
- if (bare)
76
- return '';
+const describeLinks = ({ name }) => {
77
return `
78
/**
79
* Extends \`describeLinks()\` in \`VingRecord\`
@@ -115,7 +113,7 @@ ${bare ? '' : "import { isUndefined } from '#ving/utils/identify.mjs';"}
115
113
export class ${name}Record extends VingRecord {
116
114
// add custom Record code here
117
${describeExample({ bare })}
118
- ${describeLinksExample({ bare, name })}
+ ${describeLinks({ bare, name })}
119
${addRelationshipDelete({ schema })}
120
121
0 commit comments