@fern-api/generator-cli 0.5.2 → 0.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.js +2 -1
- package/dist/cli.js +2 -1
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -8071,7 +8071,8 @@ ${this.generateIndentedBlock(
|
|
|
8071
8071
|
generateParameter(parameter) {
|
|
8072
8072
|
const desc = parameter.description?.match(/[^\r\n]+/g)?.length;
|
|
8073
8073
|
const containsLineBreak = desc != null && desc > 1;
|
|
8074
|
-
|
|
8074
|
+
const typeText = parameter.location != null ? `[${parameter.type}](${parameter.location.path})` : `\`${parameter.type}\``;
|
|
8075
|
+
return `**${parameter.name}:** ${typeText} ${parameter.description != null ? (containsLineBreak ? "\n\n" : "\u2014 ") + parameter.description : ""}
|
|
8075
8076
|
`;
|
|
8076
8077
|
}
|
|
8077
8078
|
generateIndentedBlock(content) {
|
package/dist/cli.js
CHANGED
|
@@ -14189,7 +14189,8 @@ ${this.generateIndentedBlock(
|
|
|
14189
14189
|
generateParameter(parameter) {
|
|
14190
14190
|
const desc = parameter.description?.match(/[^\r\n]+/g)?.length;
|
|
14191
14191
|
const containsLineBreak = desc != null && desc > 1;
|
|
14192
|
-
|
|
14192
|
+
const typeText = parameter.location != null ? `[${parameter.type}](${parameter.location.path})` : `\`${parameter.type}\``;
|
|
14193
|
+
return `**${parameter.name}:** ${typeText} ${parameter.description != null ? (containsLineBreak ? "\n\n" : "\u2014 ") + parameter.description : ""}
|
|
14193
14194
|
`;
|
|
14194
14195
|
}
|
|
14195
14196
|
generateIndentedBlock(content) {
|