From 6652d6af28fe5d4f1bd3eb90bcb2bfcf36107cfa Mon Sep 17 00:00:00 2001 From: Andrew Cherniavskyi Date: Thu, 8 Feb 2024 16:24:08 +0100 Subject: [PATCH] allow to ignore classes --- packages/api-docs-builder/utils/parseSlotsAndClasses.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/api-docs-builder/utils/parseSlotsAndClasses.ts b/packages/api-docs-builder/utils/parseSlotsAndClasses.ts index d2e44deda109cd..8056c440d663bf 100644 --- a/packages/api-docs-builder/utils/parseSlotsAndClasses.ts +++ b/packages/api-docs-builder/utils/parseSlotsAndClasses.ts @@ -109,6 +109,10 @@ function extractClassesFromInterface( if (classesTypeDeclaration && ts.isInterfaceDeclaration(classesTypeDeclaration)) { const classesProperties = classesType.getProperties(); classesProperties.forEach((symbol) => { + const tags = getSymbolJSDocTags(symbol); + if (tags.ignore) { + return; + } result.push({ key: symbol.name, className: projectSettings.generateClassName(muiName, symbol.name), @@ -155,6 +159,10 @@ function extractClassesFromProps( removeUndefinedFromType(type) ?.getProperties() .forEach((property) => { + const tags = getSymbolJSDocTags(property); + if (tags.ignore) { + return; + } const description = getSymbolDescription(property, typescriptProject); classes[property.escapedName.toString()] = { description,