Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Fix typing

Vasek Mlejnsky7d1a20499354
diff --git a/apps/docs/src/components/Code.tsx b/apps/docs/src/components/Code.tsx
index 013547db7..153dd1628 100644
--- a/apps/docs/src/components/Code.tsx
+++ b/apps/docs/src/components/Code.tsx
@@ -41,7 +41,7 @@ function CodePanel({
isRunnable?: boolean;
}) {
const child = Children.only(children)
- if (isValidElement(child)) code = child.props.code ?? code // Get code from child if available
+ if (isValidElement(child)) code = (child.props as any).code ?? code // Get code from child if available
if (!code) {
throw new Error(