@raycast/generate-docs
Advanced tools
Comparing version 0.8.13 to 0.8.14
{ | ||
"name": "@raycast/generate-docs", | ||
"version": "0.8.13", | ||
"version": "0.8.14", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
11
utils.js
@@ -142,2 +142,13 @@ // @ts-check | ||
} | ||
if (item.type === "indexedAccess" && item.objectType.type === "reference") { | ||
const parameter = typeParameters.find((x) => x.id === item.objectType.id); | ||
if (parameter && parameter.default?.type === "reflection") { | ||
const indexed = parameter.default.declaration.children.find( | ||
(x) => x.name === item.indexType.value | ||
); | ||
if (indexed) { | ||
return getTypeString(indexed.type, typeParameters, context); | ||
} | ||
} | ||
} | ||
@@ -144,0 +155,0 @@ throw new Error( |
32054
959