fumadocs-typescript 3.0.1 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -95,12 +95,17 @@ function generate(program, name, declaration, { allowInternal = false, transform
|
|
|
95
95
|
return {
|
|
96
96
|
name,
|
|
97
97
|
description: comment ? ts.displayPartsToString(comment) : "",
|
|
98
|
-
entries: declaration.getType().getProperties().map((prop) => getDocEntry(prop, entryContext)).filter(
|
|
98
|
+
entries: declaration.getType().getProperties().map((prop) => getDocEntry(prop, entryContext)).filter(
|
|
99
|
+
(entry) => entry && (allowInternal || !("internal" in entry.tags))
|
|
100
|
+
)
|
|
99
101
|
};
|
|
100
102
|
}
|
|
101
103
|
function getDocEntry(prop, context) {
|
|
102
104
|
var _a, _b, _c, _d;
|
|
103
105
|
const { transform, program } = context;
|
|
106
|
+
if (context.type.isClass() && prop.getName().startsWith("#")) {
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
104
109
|
const subType = program.getTypeChecker().getTypeOfSymbolAtLocation(prop, context.declaration);
|
|
105
110
|
const tags = Object.fromEntries(
|
|
106
111
|
prop.getJsDocTags().map((tag) => [tag.getName(), ts.displayPartsToString(tag.getText())])
|
package/dist/index.js
CHANGED
package/dist/ui/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fumadocs-typescript",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"description": "Typescript Integration for Fumadocs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"NextJs",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"@types/react": "18.3.12",
|
|
45
45
|
"@types/react-dom": "18.3.1",
|
|
46
46
|
"typescript": "^5.6.3",
|
|
47
|
-
"fumadocs-ui": "14.1.0",
|
|
48
47
|
"eslint-config-custom": "0.0.0",
|
|
48
|
+
"fumadocs-ui": "14.2.0",
|
|
49
49
|
"tsconfig": "0.0.0"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|