Skip to content

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

fix: resolve type check errors in link checker

Sushmithamalleshdfeebd94b785
diff --git a/docs/scripts/validate-links.ts b/docs/scripts/validate-links.ts
index 3ed2a7b19..cd0b7b68b 100644
--- a/docs/scripts/validate-links.ts
+++ b/docs/scripts/validate-links.ts
@@ -80,7 +80,7 @@ async function getHeadingsForPage(page: PageOf): Promise<string[]> {
*/
async function buildPopulateEntries(src: AnySource) {
return Promise.all(
- src.getPages().map(async (page) => ({
+ src.getPages().map(async (page: PageOf) => ({
value: { slug: page.slugs },
hashes: await getHeadingsForPage(page),
})),
diff --git a/docs/tsconfig.json b/docs/tsconfig.json
index d1f0760f5..2e449c50c 100644
--- a/docs/tsconfig.json
+++ b/docs/tsconfig.json
@@ -34,5 +34,5 @@
".next/types/**/*.ts",
".next/dev/types/**/*.ts"
],
- "exclude": ["node_modules"]
+ "exclude": ["node_modules", "scripts/preload.ts"]
}