@raycast/generate-docs
Advanced tools
Comparing version 0.8.1 to 0.8.2
{ | ||
"name": "@raycast/generate-docs", | ||
"version": "0.8.1", | ||
"version": "0.8.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -40,8 +40,13 @@ const { is } = require("./utils"); | ||
.filter((y) => !is.ReactComponentType(y)) | ||
.map(({ id }) => idsMap.get(id)) | ||
.forEach((y) => { | ||
value.push(y); | ||
if (!y) { | ||
if (y.type === "reference") { | ||
y = idsMap.get(y.id); | ||
} else if (y.type === "reflection") { | ||
y = y.declaration; | ||
} else { | ||
console.log(y, x); | ||
} | ||
value.push(y); | ||
if (y.children) { | ||
@@ -48,0 +53,0 @@ y.children.forEach((z) => iterate(z, `${key}.`)); |
29317
887