Skip to content

Commit 5a37d25

Browse files
committed
Portal: Fix llms.txt file generation
1 parent c356813 commit 5a37d25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/portal/src/app/references/components/TDoc/fetchDocs/fetchTypeScriptDoc.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { transform } from "typedoc-better-json";
22

33
let v5Prom: Promise<ReturnType<typeof transform>> | null = null;
4+
type TransformArg = Parameters<typeof transform>[0];
45

56
export async function fetchTypeScriptDoc() {
67
// v5 case (default)
@@ -12,8 +13,7 @@ export async function fetchTypeScriptDoc() {
1213
"../../../../../../../../packages/thirdweb/typedoc/documentation.json"
1314
);
1415

15-
// @ts-expect-error - works fine!
16-
return transform(doc);
16+
return transform(doc.default as TransformArg);
1717
})();
1818
return v5Prom;
1919
}

0 commit comments

Comments
 (0)