Skip to content

Commit 1817a6d

Browse files
committed
fix(plugin-help): make parameter type dimmed
1 parent 6a030e7 commit 1817a6d

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

packages/plugin-help/src/renderer.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -203,14 +203,15 @@ export class HelpRenderer {
203203
const items = command.parameters.map((parameter) => {
204204
const key = typeof parameter === "string" ? parameter : parameter.key;
205205
const type = typeof parameter === "string" ? undefined : parameter.type;
206+
const formattedType = type
207+
? this._formatters.formatTypeValue(type)
208+
: "string";
206209
const description =
207210
typeof parameter === "string" ? undefined : parameter.description;
208211

209-
return [
210-
yc.bold(key),
211-
type ? this._formatters.formatTypeValue(type) : "string",
212-
description,
213-
].filter(isTruthy);
212+
return [yc.bold(key), yc.dim(formattedType), description].filter(
213+
isTruthy,
214+
);
214215
});
215216

216217
return {

0 commit comments

Comments
 (0)