Skip to content

Commit

Permalink
fix: use same label for attributes as ts does for props
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanPiercey committed Dec 12, 2023
1 parent 24abb63 commit 260b907
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ export function AttrName({
}
}

if (!attr.required) {
label += "?";
}

completions.push({
label,
documentation: documentation.value ? documentation : undefined,
Expand Down

0 comments on commit 260b907

Please sign in to comment.