docs-util: Upgrade typedoc to 0.26 (#7853)

Upgrade typedoc to v0.26 + make changes based on the update

Note: This update produces an error when generating model references when the models use the `createPsqlIndexStatementHelper` decorator. As this isn't a breaking error, and as we'll move to DML in the future, it's not necessary to spend time on a fix.
This commit is contained in:
Shahed Nasser
2024-06-27 10:52:44 +00:00
committed by GitHub
parent 3f16b011fa
commit 6e65158af3
74 changed files with 193735 additions and 201684 deletions
+2 -2
View File
@@ -14,11 +14,11 @@
"clean": "rimraf dist"
},
"peerDependencies": {
"typedoc": "0.25.x"
"typedoc": "0.26.x"
},
"devDependencies": {
"@types/node": "^16.11.10",
"typescript": "5.2"
"typescript": "5.5"
},
"dependencies": {
"octokit": "^3.1.2",
+2 -2
View File
@@ -187,9 +187,9 @@ export function getDeclarationType({
}: TypeOptions<DeclarationReflection>): string {
escape = getShouldEscape(wrapBackticks, escape)
if (model.indexSignature || model.children) {
if (model.indexSignatures || model.children) {
let indexSignature = ""
const declarationIndexSignature = model.indexSignature
const declarationIndexSignature = model.indexSignatures?.[0]
if (declarationIndexSignature) {
const key = declarationIndexSignature.parameters
? declarationIndexSignature.parameters.map(