docs-utils: fix type error in react-docs-generator (#14002)

This commit is contained in:
Shahed Nasser authored and GitHub committed 2025-11-07 12:02:56 +02:00
1 parent 6b4f2c1d32
commit 9576ef3763
2 files changed
+1 -4

No files matched your search

@@ -100,10 +100,6 @@ export default async function ({
mkdirSync(filePath) mkdirSync(filePath)
} }
if (spec.displayName === "Drawer.Content") {
console.log("here", spec)
}
// write spec to output path // write spec to output path
writeFileSync( writeFileSync(
path.join(filePath, `${spec.displayName}.json`), path.join(filePath, `${spec.displayName}.json`),
@@ -16,6 +16,7 @@ export function getTypescriptTsType(
if ( if (
!convertedType && !convertedType &&
"links" in symbol && "links" in symbol &&
symbol.links &&
"type" in (symbol.links as Record<string, unknown>) "type" in (symbol.links as Record<string, unknown>)
) { ) {
const symbolTypeLink = (symbol.links as Record<string, unknown>) const symbolTypeLink = (symbol.links as Record<string, unknown>)