-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
.yarn/patches/typedoc-plugin-markdown-npm-4.2.6-525bc81e4a.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
diff --git a/dist/theme/context/partials/member.typeDeclarationTable.js b/dist/theme/context/partials/member.typeDeclarationTable.js | ||
index fb4c85bd702f1d1b165caeecfea32ca54150b614..f0ab06f6d7d3b90cea01e977f190d5bf00cf47bb 100644 | ||
--- a/dist/theme/context/partials/member.typeDeclarationTable.js | ||
+++ b/dist/theme/context/partials/member.typeDeclarationTable.js | ||
@@ -29,7 +29,8 @@ function typeDeclarationTable(model, options) { | ||
const rows = []; | ||
declarations.forEach((declaration) => { | ||
const row = []; | ||
- row.push((0, markdown_1.backTicks)(declaration.name)); | ||
+ const name = declaration.name+ (declaration.flags.isOptional ? "?" : '') | ||
+ row.push((0, markdown_1.backTicks)(name)); | ||
row.push(this.partials.someType(declaration.type)); | ||
if (hasDefaultValues) { | ||
row.push((0, utils_1.escapeChars)(!declaration.defaultValue || declaration.defaultValue === '...' |