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: twoslash type checking only, no hover UI

Sushmithamallesh7a74bba36fb1
diff --git a/docs/app/global.css b/docs/app/global.css
index 546c0b016..243f55b81 100644
--- a/docs/app/global.css
+++ b/docs/app/global.css
@@ -2,7 +2,6 @@
@import 'fumadocs-ui/css/neutral.css';
@import 'fumadocs-ui/css/preset.css';
@import 'fumadocs-openapi/css/preset.css';
-@import '@shikijs/twoslash/style-rich.css';
@import "tw-animate-css";
@custom-variant dark (&:is(.dark *));
@@ -484,36 +483,3 @@ nav a[href*="app.composio"]:focus-visible {
@apply bg-background text-foreground;
}
}
-
-/* ==========================================================================
- Twoslash - Type hover popups in code blocks
- ========================================================================== */
-
-:root {
- --twoslash-border-color: var(--color-fd-border);
- --twoslash-popup-bg: var(--color-fd-popover);
- --twoslash-popup-color: var(--color-fd-popover-foreground);
- --twoslash-popup-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
- --twoslash-docs-color: var(--color-fd-muted-foreground);
- --twoslash-docs-font: var(--font-sans);
- --twoslash-code-font: var(--font-mono);
-}
-
-.dark {
- --twoslash-popup-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
-}
-
-.twoslash .twoslash-popup-container {
- border-radius: var(--radius);
- max-width: 540px;
-}
-
-.twoslash .twoslash-popup-code {
- font-size: 0.8125rem;
- line-height: 1.5;
-}
-
-.twoslash .twoslash-popup-docs {
- font-size: 0.8125rem;
- line-height: 1.5;
-}
diff --git a/docs/source.config.ts b/docs/source.config.ts
index 85ec81e36..61559d5a2 100644
--- a/docs/source.config.ts
+++ b/docs/source.config.ts
@@ -89,7 +89,7 @@ export default defineConfig({
light: 'github-light',
dark: 'github-dark',
},
- // Twoslash disabled in dev (heap memory issues), enabled in build/CI
+ // Twoslash for type checking only - no hover UI
transformers:
process.env.NODE_ENV === 'production'
? [
@@ -98,6 +98,14 @@ export default defineConfig({
typesCache: createFileSystemTypesCache({
dir: '.next/cache/twoslash',
}),
+ renderer: {
+ // Empty renderer - type checks but renders nothing
+ nodeStaticInfo: () => ({}),
+ nodeError: () => ({}),
+ nodeQuery: () => ({}),
+ nodeCompletion: () => ({}),
+ nodesHighlight: () => ({}),
+ },
}),
]
: [],