docs-utils: fix type error in react-docs-generator (#14002)
This commit is contained in:
@@ -100,10 +100,6 @@ export default async function ({
|
||||
mkdirSync(filePath)
|
||||
}
|
||||
|
||||
if (spec.displayName === "Drawer.Content") {
|
||||
console.log("here", spec)
|
||||
}
|
||||
|
||||
// write spec to output path
|
||||
writeFileSync(
|
||||
path.join(filePath, `${spec.displayName}.json`),
|
||||
|
||||
@@ -16,6 +16,7 @@ export function getTypescriptTsType(
|
||||
if (
|
||||
!convertedType &&
|
||||
"links" in symbol &&
|
||||
symbol.links &&
|
||||
"type" in (symbol.links as Record<string, unknown>)
|
||||
) {
|
||||
const symbolTypeLink = (symbol.links as Record<string, unknown>)
|
||||
|
||||
Reference in New Issue
Block a user