diff --git a/app/api/artifact/route.ts b/app/api/artifact/route.ts index ab8485913..4707e795f 100644 --- a/app/api/artifact/route.ts +++ b/app/api/artifact/route.ts @@ -15,7 +15,7 @@ async function handle(req: NextRequest, res: NextResponse) { const body: { key: string; value: string; - expiration_ttl?: Number; + expiration_ttl?: number; } = { key: hashedCode, value: clonedBody, diff --git a/app/components/artifact.tsx b/app/components/artifact.tsx index 0c3ee84a8..bab68ee51 100644 --- a/app/components/artifact.tsx +++ b/app/components/artifact.tsx @@ -33,7 +33,7 @@ export function HTMLPreview(props: { */ useEffect(() => { - const handleMessage = (e) => { + const handleMessage = (e: any) => { const { id, height, title } = e.data; setTitle(title); if (id == frameId.current) { diff --git a/app/components/ui-lib.tsx b/app/components/ui-lib.tsx index aff524b12..2356ee254 100644 --- a/app/components/ui-lib.tsx +++ b/app/components/ui-lib.tsx @@ -528,7 +528,7 @@ export function FullScreen(props: any) { } }, []); useEffect(() => { - const handleScreenChange = (e) => { + const handleScreenChange = (e: any) => { if (e.target === ref.current) { setFullScreen(!!document.fullscreenElement); }