Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
TypeScript agentic-aiagentsaiai-agentsaiagentsdeveloper-toolsfunction-callinggpt-4javascriptjsllmllmopsmcppythonremote-mcp-serverssetypescript
fix: Fix TypeScript type errors in lazy initialization
sohamganatra13211b12b538
diff --git a/docs/app/llms.mdx/[[...slug]]/route.ts b/docs/app/llms.mdx/[[...slug]]/route.tsindex 87b81af14..15d1d60ef 100644--- a/docs/app/llms.mdx/[[...slug]]/route.ts+++ b/docs/app/llms.mdx/[[...slug]]/route.ts@@ -448,7 +448,7 @@ export async function GET(if ('getAPIPageProps' in page.data) {try {const markdown = await openapiPageToMarkdown(- page as { url: string; data: OpenAPIPageData }+ page as unknown as { url: string; data: OpenAPIPageData });return new Response(markdown, {headers: {diff --git a/docs/lib/source.ts b/docs/lib/source.tsindex e36e264ac..4b516065d 100644--- a/docs/lib/source.ts+++ b/docs/lib/source.ts@@ -13,8 +13,10 @@ export const source = loader({// Combined reference source with MDX pages and OpenAPI-generated pages// Lazy initialization to avoid top-level await issues in serverless-let _referenceSource: ReturnType<typeof loader> | null = null;-let _openapiPagesPromise: Promise<Awaited<ReturnType<typeof openapiSource>>> | null = null;+// eslint-disable-next-line @typescript-eslint/no-explicit-any+let _referenceSource: any = null;+// eslint-disable-next-line @typescript-eslint/no-explicit-any+let _openapiPagesPromise: Promise<any> | null = null;async function getOpenapiPages() {if (!_openapiPagesPromise) {