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((entry) => allowInternal || !("internal" in entry.tags))
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
@@ -7,7 +7,7 @@ import {
7
7
  generateDocumentation,
8
8
  getProject,
9
9
  renderMarkdownToHast
10
- } from "./chunk-XZ3O77SF.js";
10
+ } from "./chunk-2L4CMRDQ.js";
11
11
 
12
12
  // src/generate/mdx.ts
13
13
  import * as path from "node:path";
package/dist/ui/index.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  generateDocumentation,
6
6
  getProject,
7
7
  renderMarkdownToHast
8
- } from "../chunk-XZ3O77SF.js";
8
+ } from "../chunk-2L4CMRDQ.js";
9
9
 
10
10
  // src/ui/auto-type-table.tsx
11
11
  import fs from "node:fs/promises";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fumadocs-typescript",
3
- "version": "3.0.1",
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": {